RE: Pointer cancel event dispatching

Hi Nick,

The case you call out is possible and OK. The Pointer Events spec does not define the triggers for behaviors like panning. So such a "touch action" could kick in at any time (even after move events have fired).  The spec text you link to is saying that, if you have already fired pointerdown and are now about to perform a touch action then you must fire pointercancel. In other words, we want to make sure that if the page sees a pointerdown, then it is guaranteed to see either a pointerup or a pointercancel.


From: Nikolay Lebedev []
Sent: Tuesday, February 4, 2014 4:58 AM
Subject: Pointer cancel event dispatching


may i ask a question about pointer cancel event dispatching:
Is it proper spec behavior If the browser would dispatch the following sequence of events:
[pointerdown, pointermove (a few times), pointercancel] in the following case: user starts panning a scrollable div with the touch-action value = auto ?

I'm not an expert on the dom/events spec stuff but when i firstly looked at the section [1] i misintepreted it and understood that only pointerdown/pointercancel events are allowed but not the pointermove for the case described above.



Received on Tuesday, 11 February 2014 16:38:19 UTC