chrisbateman / impetus

Agnostic utility for adding momentum to anything. It's like iScroll, except not for scrolling. Supports mouse and touch events.
chrisbateman.github.io/impetus
MIT License
487 stars 70 forks source link

Warning: Unable to preventDefault inside passive event listener due to target being treated as passive. #30

Closed leroy-p closed 7 years ago

leroy-p commented 7 years ago

This warning appears in my console (Chrome version 58.0.3029.110 64-bit) when I am scrolling in my app using Impetus.js

chrisbateman commented 7 years ago

This should fix it for now, but it sounds like Chrome would also prefer for you to add a touch-action: none CSS property to the element. We could do that directly from Impetus, but I'm kind of reluctant to do it since we don't know if it might get blown away by something the consumer is doing.