Touch event listener demo won't scroll in Firefox until you release the first touch
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
People
(Reporter: cpeterson, Unassigned)
References
()
Details
(Keywords: parity-chrome)
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
I don't understand this. The test explicitly doesn't use passive listeners.
Reporter | ||
Comment 3•6 years ago
|
||
(In reply to Olli Pettay [:smaug] (massive needinfo queue, ping on IRC on anything urgent) from comment #2)
I don't understand this. The test explicitly doesn't use passive listeners.
Oops. I'm not sure how I missed the passive: false
option. I don't recall where I found this CodePen test case.
However, with passive: false
, I do still see Firefox and Chrome behave differently on my Windows touchscreen laptop as described in comment 0:
- On the first touchstart, Chrome and Firefox both change the "Press your device and move to test" message to "yeah! 🤘", but only Chrome will allow you to scroll the page while dragging on this first touch.
- If you touchend and then touchstart a second time, then Firefox will allow you to scroll the page by dragging.
Is this difference in behavior expected?
Chrome's behavior looks broken to me.
And are you using a Chrome version which actually dispatches touch events :)
Reporter | ||
Comment 6•6 years ago
|
||
(In reply to Olli Pettay [:smaug] (massive needinfo queue, ping on IRC on anything urgent) from comment #5)
And are you using a Chrome version which actually dispatches touch events :)
I think so. The CodePen test listens for touchstart
and touchmove
events. It responds to my Windows touchscreen in Chrome and Firefox, but not to my trackpad clicks.
Description
•