Chrome treats document-level touch event listeners as passive by default
Opened this issue · 4 comments
The plugin isn't working properly for me in Chrome version 58.0.3029.83 on Android on the demo page at http://stephen.band/jquery.event.move/ . Instead of just the red block moving, the page moves as well.
On the desktop, I can see this warning in Chrome cersion 58.0.3029.110 (64-bit) when using Chrome DevTools console to simulate mobile view:
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See
https://www.chromestatus.com/features/5093566007214080
The behaviour was added to Chrome in version 56, which came out on 25th January.
Did you find a workaround? I'm having the same issue.
Same issue here.
@usernamethatsnottaken No, I didn't find a workaround...
workaround would be listening the events with passive = false.
adding it to line 121 fixed the issue for me
node.addEventListener(type, handler, { passive: false });