webdriver icon indicating copy to clipboard operation
webdriver copied to clipboard

Add pointerleave event for stylus

Open LanWei22 opened this issue 4 years ago • 3 comments

Right now, the Webdriver Actions API has three action types, pointerdown, pointermove and pointerup. For stylus, if the pen is approaching the digital tablet, we should fire a pointerenter event, if the pen is leaving the digital tablet range, we will fire a pointerleave event. I am proposing to add these two events to the Actions API so we can simulate the actions in the stylus wpt tests, such as third_party/blink/web_tests/external/wpt/pointerevents/pointerevent_pointerleave_pen-manual.html.

LanWei22 avatar Mar 12 '21 05:03 LanWei22

@jgraham do you know the right Mozilla contact for Actions API additions? This seems like a fairly small change.

Here's the test in WPT: https://github.com/web-platform-tests/wpt/blob/master/pointerevents/pointerevent_pointerleave_pen-manual.html

@LanWei22 would the tests here send pointerenter and pointerleave events directly, or do something (like describe the pen position) which the browser would turn into those events?

foolip avatar Apr 08 '21 08:04 foolip

I don't think we implement the pen pointer type yet. I think we'd be OK with a pointerleave event, but I don't know of any plans to prioritise implementing this.

jgraham avatar Apr 08 '21 08:04 jgraham

We are very happy to work on it, we will have a PR with spec change and Webdriver test soon, thank you.

LanWei22 avatar Apr 09 '21 02:04 LanWei22