react-component / slider

React Slider
https://slider.react-component.now.sh/
MIT License
3.04k stars 775 forks source link

Unable to preventDefault inside passive event listener invocation. #805

Open davide-kahoot opened 2 years ago

davide-kahoot commented 2 years ago

Hello, i noticed this is fired ( along a warning regarding findDomNode ) when scrolling. Mobile only

rmaury commented 2 years ago

Same here. Did you find a fix for this @davide-kahoot ?

JoeyBryant4 commented 1 year ago

I found this issue as well for mobile the issue is around the event listener for the event type 'touchstart'. The error doesnt break anything but is very noisy.

I think the fix would be around this code

image

The event type 'touchstart' is passive and so any mobile users using the slider will cause the error to fire.