lil-gui icon indicating copy to clipboard operation
lil-gui copied to clipboard

More consistent notched wheel behavior

Open georgealways opened this issue 3 years ago • 0 comments

Uses the sign of wheel delta to increment NumberControllers on mousewheel. The spec says I'm supposed to be able to divide this value by 120 to get actual lines scrolled, but in reality every browser is doing something different with this value.

Also removed some unnecessary checks and commented in my thinking.

Still only accurately identifying notched wheels in Safari & Chrome.

georgealways avatar Feb 17 '22 14:02 georgealways