zillow / react-slider

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

Unable to preventDefault inside passive event listener due to target being treated as passive. #162

Closed stonebk closed 4 years ago

stonebk commented 4 years ago

We get the following console spam when using touch to move the slider:

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

Some references to the change in behavior and possible solutions:

The fix might be to just explicitly set { passive: false } when adding event listeners, but want to make sure that doesn't negatively affect performance.

stonebk commented 4 years ago

react-slider@1.0.3