w3c / webdriver

Remote control interface that enables introspection and control of user agents.
https://w3c.github.io/webdriver/
Other
682 stars 195 forks source link

What is the pointerCancel action used for? #1216

Open mercmobily opened 6 years ago

mercmobily commented 6 years ago

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?

stp-ekioh commented 1 year 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.

whimboo commented 1 year ago

@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?

jgraham commented 1 year ago

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.

whimboo commented 2 weeks ago

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.

whimboo commented 3 days ago

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!

saschanaz commented 1 day ago

I don't have a strong opinion.