sachinchoolur / lightslider

JQuery lightSlider is a lightweight responsive Content slider with carousel thumbnails navigation
http://sachinchoolur.github.io/lightslider/
MIT License
2.04k stars 1.53k forks source link

Unable to preventDefault inside passive event listener invocation #481

Open lucagrandicelli opened 2 years ago

lucagrandicelli commented 2 years ago

Since Chrome 51, an event listener can be set as "passive". Passive event listeners were introduced to optimize scrolling performance on a device. When you use a passive event listener on your site, you promise not to use a preventDefault() in that listener to disable scrolling.

This library generates an enormous amount of this warning on every touchStart and touchMove event, since is calling preventDefault without the 'passive' flag on.

Can you just publish a tiny update to fix this? Thank You.