`pointermove` events returned by `getCoalescedEvents()` report `.movementX` and `.movementY` in absolute values, rather than relative to the previous event
Categories
(Core :: DOM: UI Events & Focus Handling, defect, P3)
Tracking
()
People
(Reporter: alex.forrence, Unassigned)
References
Details
Steps to reproduce:
- Navigate to https://codepen.io/aforren1/pen/abVmEyZ for test case
- Toggle "mousemove (off)/pointermove (on)" on, and move mouse slowly
- Toggle "uncoalesce?" on, and move mouse slowly
Actual results:
In step 3, dx
and dy
report absolute position on page, rather than the relative position.
Expected results:
The values of dx
and dy
in step 3 should be relative to the previous cursor position, not absolute (approximately matching the magnitude and signs of 'mousemove' & coalesced 'pointermove').
Comment 1•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Layout: Positioned' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Updated•3 years ago
|
Updated•3 years ago
|
Comment 2•3 years ago
|
||
I could reproduce this with Firefox Nightly 100.0a1 on macOS 12.1.
Comment 3•3 years ago
|
||
The fun thing is that movementX/Y should be 0 always with pointer events per current specifications.
Comment 4•3 years ago
|
||
https://w3c.github.io/pointerlock/#dom-mouseevent-movementx
movementX/movementY must be zero for all mouse events except mousemove
Huh, fun indeed.
It has been clarified that this also includes pointermove
.
See the following GitHub issue.
Description
•