[pointerevents] Incorrect definition for primary pen (and possibly touch)

patrickhlauke has just created a new issue for 
https://github.com/w3c/pointerevents:

== Incorrect definition for primary pen (and possibly touch) ==
https://w3c.github.io/pointerevents/#determining-the-primary-pointer 
currently states

> primary touch input
> A pointer representing touch input is considered the primary touch 
input if its `pointerdown` event was dispatched when no other active 
pointers representing touch input existed.
>
> primary pen input
> A pointer representing pen input is considered the primary pen input
 if its `pointerdown` event was dispatched when no other active 
pointers representing pen input existed.

at least for pen, this seems incorrect (assuming that the 
implementation in Edge on Surface 3 with Pen is correct) - pen input 
becomes primary as soon as it is detected by the digitizer (hovering 
stylus/pen) in this scenario, while the spec text implies it would 
only be promoted to primary once `pointerdown` is fired.

extending this, it's likely that the same would be true for hovering 
touch interfaces (though i have no way of testing this at the moment).

as per @RByers comment 
https://github.com/w3c/pointerevents/pull/53#discussion_r60919875 the 
`pointerdown` part may be a red herring, and what counts is whether or
 not a pointer is an active pointer (per glossary definition 
https://w3c.github.io/pointerevents/#dfn-active-pointer)

Please view or discuss this issue at 
https://github.com/w3c/pointerevents/issues/54 using your GitHub 
account

Received on Monday, 25 April 2016 14:53:33 UTC