Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to preventDefault inside passive event listener invocation #481

Open
ghost opened this issue Mar 31, 2022 · 0 comments
Open

Unable to preventDefault inside passive event listener invocation #481

ghost opened this issue Mar 31, 2022 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 31, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants