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

Error: [Violation] Added non-passive event listener... #162

Closed
stefanoginella opened this issue Nov 6, 2017 · 3 comments
Closed

Error: [Violation] Added non-passive event listener... #162

stefanoginella opened this issue Nov 6, 2017 · 3 comments

Comments

@stefanoginella
Copy link

When using baguetteBox.js, In the Chrome Dev tools console i get this error:

[Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 baguetteBox.min.js:7

What could it be? How can I fix it?

@feimosi
Copy link
Owner

feimosi commented Nov 6, 2017

First of all, it's not an error, but rather a Chrome's suggestion. You can turn it off by disabling the Verbose option in the console tab:
image

Secondly, we don't support passive event handlers yet. There's a PR waiting for testing and merging: #148

@stefanoginella
Copy link
Author

Thanks for your reply! ;)

@feimosi
Copy link
Owner

feimosi commented Nov 6, 2017

No problem :) You can fork and use that PR if you really need this functionality.

@feimosi feimosi closed this as completed Nov 6, 2017
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

2 participants