Open Bug 1597664 Opened 5 years ago Updated 2 years ago

PointerEvents missing pointercancel event when pen leaves the hover area

Categories

(Core :: DOM: Events, defect, P3)

70 Branch
defect

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

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → DOM: Events
Product: Firefox → Core

Can't reproduce this with a mouse on Ubuntu 18.04. Also not on Windows 10. Tried with Nightly.

This is for stylus/pens with hover support

(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.

Blocks: 822898
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P3
Blocks: 1631377
No longer blocks: 822898
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.