Mouse events still being fired when preventDefault() in called in touch event handlers
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
People
(Reporter: Margaret, Unassigned)
References
Details
(Keywords: regression)
Attachments
(1 obsolete file)
Comment 1•12 years ago
|
||
Comment 2•12 years ago
|
||
Comment 4•12 years ago
|
||
Updated•12 years ago
|
Comment 6•11 years ago
|
||
Comment 9•11 years ago
|
||
Comment 11•9 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 12•5 years ago
|
||
This bug still exists in Firefox 72.0a1 20191109093718 in touch emulation mode
Calling event.preventDefault() inside any touchstart, touchmove, or touchend does not cancel any following events although it should, according to https://w3c.github.io/touch-events/#cancelability
I can reproduce it here https://jsfiddle.net/v9bcqwp7/6/
if you click on the element it shows touchstart, touchmove, touchend and click events are all fired
but touchend calls event.preventDefault() which should not allow the click event to fire
Comment 13•5 years ago
|
||
I am having the same problem as angyongen. Calling event.preventDefault() on touchstart, touchmove or touchend event does not stop mouse and click event emulation from firing. I'm using Firefox 74.0 (64-bit) on Mac OS High Sierra (10.13.6). This is causing problems with my highly touch/mouse oriented web application. Hope you all can figure it out. It's a pretty handy tool otherwise. Thank you!
Updated•2 years ago
|
Description
•