fisshy / react-scroll

React scroll component
https://github.com/fisshy/react-scroll/blob/master/README.md
MIT License
4.35k stars 436 forks source link

change mouseWheel event in cancel events #570

Closed pankeku closed 10 months ago

pankeku commented 10 months ago

mouseWheel event is deprecated and is not compatible with Firefox. Thus, on Firefox when scrolling is happening and user wants to stop the scrolling with mouse wheel, scrolling doesn't cancel. All other events seems to be working normally.

https://developer.mozilla.org/en-US/docs/Web/API/Element/mousewheel_event

fisshy commented 10 months ago

great! thanks for the PR, will merge and release later.