react-scroll-horizontal icon indicating copy to clipboard operation
react-scroll-horizontal copied to clipboard

Mouse Deltas not Normalized by React

Open hew opened this issue 9 years ago • 2 comments

I have encountered a situation where certain mice have vastly different mouse deltas on Firefox as compared with the rest of the browsers. Like, 10x difference.

This shouldn't happen, as in theory React's onWheel() should be normalizing all the deltas across browsers. That is what React advertises it does, but it seems that it is unable to handle certain edge cases.

hew avatar Apr 25 '16 18:04 hew

React's SyntheticWheelEvent.js

Hmmm. I don't think React actually normalizes these values at all.

I may have misread this to say, "React will handle all event normalizations for everything, ever."

hew avatar Apr 25 '16 20:04 hew

I have looked at a few other mouse wheel normalization scripts and they all seem to refer back to jquery.mousewheel.js as the most comprehensive option available.

hew avatar Apr 26 '16 00:04 hew