PointerEvents missing pointercancel event when pen leaves the hover area
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
People
(Reporter: adrian, Unassigned)
References
(Blocks 1 open bug)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
Firefox for Android
Steps to reproduce:
On a surface pro in windows 10 hover the surface pen above the screen using this jsFiddle https://jsfiddle.net/9wqn3e2x. and observe the pointermove event is fired.
Then move the pen out of range so it no longer hovers
Actual results:
Nothing, it doesn't seem possible to detect when the pen is no longer hovering.
Expected results:
The pointer should have called pointerout/pointerleave
PointerLeave: "Fired when a pointer is moved out of the hit test boundaries of an element. For pen devices, this event is fired when the stylus leaves the hover range detectable by the digitizer."
Chrome and Edge do fire the expected events
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Can't reproduce this with a mouse on Ubuntu 18.04. Also not on Windows 10. Tried with Nightly.
Comment 4•5 years ago
|
||
(In reply to Mirko Brodesser (:mbrodesser) from comment #2)
Can't reproduce this with a mouse on Ubuntu 18.04. Also not on Windows 10. Tried with Nightly.
I managed to reproduce it with surface pro.
Updated•4 years ago
|
Updated•2 years ago
|
Description
•