Re: Tweak wording in introduction?

On 2/15/13 5:08 AM, "Arthur Barstow" <art.barstow@nokia.com> wrote:

>>
>>If a single non-trivial application supports touch/pen/mouse input well,
>>it's likely to recognize different gestures and support different
>>interactions, depending on the input device. Are there some examples that
>>show how this would be done with Pointer Events? I'm wondering how much
>>shared code could actually be factored out of such an application.
>Example 5 in the spec shows a scenario (Canvas painting) where
>differentiating by pointer type is not needed.
>Example 6 in the spec shows how differentiating by pointer type is
>possible, should you wish.
>
>In the very general sense, the events that a pointing device produces do
>not differ by device (e.g. all devices have "down", "move", "up", etc.
>scenarios). In practice, I see developers differentiate per device for
>two reasons:
>
>1) Varied UI (e.g. larger targets for touch)
>Generally speaking, this is done outside of events (e.g. either with the
>pointer/hover CSS media queries or in script via something like
>navigator.maxTouchPoints).
>
>2) Varied gestures
>Gestures are really a level above what pointer events deal with. Gestures
>are out of scope for this working group. But as an example, IE10's
>MSGesture object takes in pointer events (for any device type) and
>outputs gestures relevant to that device.
>http://blogs.msdn.com/b/ie/archive/2012/06/20/10322287.aspx

Thanks for pointing out the MSGesture example, that's a compelling
demonstration of what I was asking about. Enabling the development of
input libraries like this sounds like a worthy role for Pointer Events.
Perhaps more important than just using Pointer Events directly.

Thanks,
- Hans

Received on Friday, 15 February 2013 17:13:05 UTC