"pointerup" event can automatically be triggered on touchscreen devices
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: gd.productions, Unassigned)
Details
Attachments
(1 file)
|
2.22 KB,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:86.0) Gecko/20100101 Firefox/86.0
Steps to reproduce:
-
Either use a touchscreen device or enable the touch event emulation on desktop.
-
On a page that checks pointer events (you can see the attached sample), touch the screen with your finger and lets it on the screen without moving.
Actual results:
After a second or so, the "pointerup" event will be triggered while the finger is still touching the screen.
Expected results:
-
The "pointerup" event shouldn't have been triggered in this situation.
-
This issue only happens when the pointer type is NOT a mouse.
-
Also, this issue doesn't happen when using the touch* events (touchstart / touchend) instead.
-
In Chrome, this is working as intended.
Comment 1•5 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::DOM: Events' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 2•5 years ago
|
||
I could not reproduce this on Surface Pro on my side.
Comment 3•4 years ago
|
||
Theoretically this can happen when simulating touch input since the InjectTouchInput API expects continuous calls or it timeouts (https://bugzilla.mozilla.org/show_bug.cgi?id=1313170#c5, the behavior still exists although the docs doesn't say that anymore 🤷♀️).
But I'm not sure how it can happen with a physical input device. It's also weird if it only happens with pointerup but not touchend. Which device are you using?
Updated•4 years ago
|
Updated•3 years ago
|
Description
•