I’m just using Lime, without OpenFL.
I noticed that through onMouseWheel, deltaY has different magnitudes on different platforms.
The only two targets I currently use are Windows and HTML5, so I’m not sure how the other ones behave.
- Windows native: multiples of 1
- Chrome and Opera: multiples of 100
- Firefox: multiples of 3
- Edge: multiples of 128
So my question is: is the only decent solution for me to only check whether the scroll is negative or positive?
The downside to this is that very fast scrolling will be limited to the event dispatch speed.
I just tested the mouse wheel event in Flash Player (without Haxe). I get multiples of 3.