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. #18

Closed
kyleoliveiro opened this issue May 17, 2018 · 2 comments
Closed

Comments

@kyleoliveiro
Copy link

When cancelOnUserAction is set to false, Chrome throws the following error multiple times during an animated scroll:

Unable to preventDefault inside passive event listener invocation.    [animated-scroll-to.js:134]
@Stanko
Copy link
Owner

Stanko commented May 17, 2018

Hello @kyleoliveiro,
For now, you need to set passive: false in that scenario. I'll make sure to do it under the hood, when cancelOnUserAction is set to false.

Cheers!

@Stanko
Copy link
Owner

Stanko commented May 17, 2018

Updated documentation, library and published.
6f05366#diff-03c66a80d920d1ef8a30427d3f240ed7R32

@Stanko Stanko closed this as completed May 17, 2018
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