jquery.event.move icon indicating copy to clipboard operation
jquery.event.move copied to clipboard

Chrome treats document-level touch event listeners as passive by default

Open lifenstein opened this issue 7 years ago • 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.

lifenstein avatar May 19 '17 00:05 lifenstein

Did you find a workaround? I'm having the same issue.

usernamethatsnottaken avatar Dec 12 '17 14:12 usernamethatsnottaken

Same issue here.

MarkNewcomb1 avatar Feb 21 '18 03:02 MarkNewcomb1

@usernamethatsnottaken No, I didn't find a workaround...

lifenstein avatar Jun 05 '18 01:06 lifenstein

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 });

DanielLavrushin avatar Aug 10 '20 06:08 DanielLavrushin