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

Minor issue on Chrome 56+: "Unable to preventDefault inside passive event listener invocation." #202

Closed
w-biggs opened this issue Oct 5, 2018 · 3 comments

Comments

@w-biggs
Copy link

w-biggs commented Oct 5, 2018

This is a very minor issue, but I figured it was best to call it to your attention.

On Chrome 56+, touch events cause an error: Unable to preventDefault inside passive event listener invocation. touchmoveHandler @ baguetteBox.js:107. This is apparently due to a change the Chrome developers made where touchstart and touchmove events on the window, document, or body elements are now passive by default.

I haven't noticed any functionality problems, but it does cause the console to spit out a bunch of errors whenever you swipe. This can apparently be fixed pretty easily by using the touch-action: none CSS style instead.

Just a heads up!

@feimosi
Copy link
Owner

feimosi commented Oct 6, 2018

Thanks for reporting that!
I fear that touch-action: none won't fire the event at all and we use it for the swipe gesture. I'm gonna look into it and find a better solution.

@tillkruss
Copy link

Any update on this?

@feimosi
Copy link
Owner

feimosi commented Mar 31, 2020

Fixed in v1.11.1

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

3 participants