zillow / react-slider

Accessible, CSS agnostic, slider component for React.
https://zillow.github.io/react-slider
MIT License
892 stars 231 forks source link

[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive #117

Closed jontro closed 5 years ago

jontro commented 7 years ago

Chrome gives the following warning when using the latest version of react-slider. [Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080 e @ react-slider.js:17 _onTouchMove @ react-slider.js:506

alex-blair commented 6 years ago

I added the CSS property touch-action: none; to my slider style and that stopped the warning. Was suggested here: https://stackoverflow.com/questions/42101723/unable-to-preventdefault-inside-passive-event-listener

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.