Open Bug 1684355 Opened 5 years ago Updated 3 years ago

pointerup event not fired in certain situations when mouse buttons are released outside of the window

Categories

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

Firefox 84
defect

Tracking

()

UNCONFIRMED

People

(Reporter: matt, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36

Steps to reproduce:

Tested on Windows 10 only.

(1) bind a pointerdown handler that calls setCapture
(2) press the left mouse button, drag out of the window - pointermove events are sent
(3) press another button on the mouse, outside of the window- a pointermove event is triggered for the button state
(4) release the left mouse button- a pointermove event is triggered for the button state
(5) release the other button

Actual results:

No pointerup is triggered, yet the mouse pointer is no longer in the active buttons state.

Expected results:

Firefox should trigger a pointerup event, since there are now no buttons pressed.

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

a minimal testcase would be really useful here.

Severity: -- → S3
Flags: needinfo?(matt)
Priority: -- → P3
Attached file index.html

Added a reproduction. Similar behavior is observed on Linux, and can also be triggered by right-clicking to open a context menu if the right-click is released inside the context menu.

Redirect a needinfo that is pending on an inactive user to the triage owner.
:edgar, since the bug has recent activity, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(matt) → needinfo?(echen)
Blocks: pointerevent
Flags: needinfo?(echen)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: