mattbryson / TouchSwipe-Jquery-Plugin

TouchSwipe is a jquery plugin to be used with jQuery on touch input devices such as iPad, iPhone etc.
http://labs.rampinteractive.co.uk/touchSwipe/
Other
4.05k stars 1.68k forks source link

Warning with Chromium #336

Closed Tchoupinax closed 5 years ago

Tchoupinax commented 6 years ago

Hello, Your plugin works well but i have this issue using Chromium. Version 62.0.3202.75 (Official Build) Built on Ubuntu , running on LinuxMint 18.2 (64-bit)

jquery.min.js:3 [Intervention] Unable to preventDefault inside passive event listener 
due to target being treated as passive. 
See https://www.chromestatus.com/features/5093566007214080

Regards,

etetlow commented 6 years ago

Hi, I have the same warning in Chrome Version 64.0.3282.167. Plugin works wonderfully though. [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080

mattbryson commented 5 years ago

Yes, this is a waring from Chrome that TouchSwipe hasn't flagged its swiping event listeners as passive. However TouchSwipe is NOT passive, it does need to call preventDefault to stop page scrolling when swiping (if configured that way). There is no way (that I can see) to flag the listener as {passive:false} and thus remove the warning in chrome.