Yeah, pointer events definitely seem like the winner in the long term. For now, 
I would imagine that we'll be using touch events in gaia apps for a few reasons:

1 - It helps with testing.
2 - It should be more performant on the devices because we don't need to 
provide shims.
3 - They'll work on desktop as long as we include a shim.


Best,
Kevin

----- Original Message -----
From: "Matt Brubeck" <[email protected]>
To: [email protected]
Sent: Wednesday, July 17, 2013 4:26:56 PM
Subject: Re: [b2g] Touch support in B2G desktop?

On 7/17/2013 2:59 PM, Mounir Lamouri wrote:
> Is there any future-proof plans to solve this issue? I can see at least
> two reasonable use cases for Gaia to be able to handle non-touch
> devices: Firefox OS on Desktop and Firefox OS on tablets with a docking
> station.

When Pointer Events are implemented in Gecko (bug 822898), they will 
provide the easiest way to write code once that works with both touch 
and mouse input.  Unfortunately that is a long ways off for b2g developers.

For now, either apps must be written with both Touch Event and Mouse 
Event support, or they must use shims that abstract away the 
differences, or our platform must have such a shim built in when we ship 
on hardware with mouse support.  (The latter option is the one it we're 
using for b2g desktop builds and the simulator.)

Whether they use Pointer Events or Touch+Mouse Events, I do think that 
apps (including our system apps) should be written to work with both 
touch and non-touch input -- after all, if these are truly web apps then 
they should be browser- and hardware-agnostic.
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to