Open mercmobily opened 6 years ago
Also, how is it supposed to be implemented? The spec (both recommendation and working draft for version 2) says "process a pointer cancel action" but includes no details on what that actually entails.
@jgraham do you remember what this action was planned for? Maybe it's a left-over and that releaseActions
is what clients should actually call?
I assume it's supposed to be https://w3c.github.io/pointerevents/#the-pointercancel-event which is when the pointer isn't going to produce new events e.g. because it was disconnected. I agree that there's currently a hole in the spec, and the fact that this has gone unaddressed for so long does somewhat suggest that this isn't actually something that's needed in practice.
Note that this is not just a disconnect of a device. Some more scenarios are listed at: https://developer.mozilla.org/en-US/docs/Web/API/Element/pointercancel_event
So I would suggest that we remove the reference for now and make this issue an enhancement request.
While this is an API which isn't implemented yet, I wonder how useful it would be for users, and as well for testing scenarios in web-platform tests. Are there situations when this API would make sense as a separate command? Right now only a pointerUp
action emits this extra event as far as I can see. Do we need more simulation scenarios?
@smaug----, @saschanaz do you have some feedback? Thanks!
I don't have a strong opinion.
I haven't been able to understand this by reading the specs, looking online sending actions to the chromedriver.
What is the pointerCancel action used for exactly? When would you perform such an action in a tick?