wheel event
hashplus opened this issue · 4 comments
hashplus commented
wheel: (e) =>
return unless e?
delta = e.delta or e.wheelDelta or (e.originalEvent and e.originalEvent.wheelDelta) or -e.detail or (e.originalEvent and -e.originalEvent.detail)
@sliderY += -delta / 3 if delta
do @scroll
false
in firefox delta will be 3 when scroll down , chrome ie, opera will be -120
kristerkari commented
right, so do you think that it is not working as expected?
hashplus commented
When the mouse hovers on the scroll bar to scroll the page will scroll a great distance in chrome
kristerkari commented
True, it looks like the scrolling speed is much faster than what it is when the scrollbar is not hovered.
kristerkari commented
It looks like the current code is actually not cross browser and wheel event should be handled in in similar way than it is done here:
https://stackoverflow.com/questions/5527601/normalizing-mousewheel-speed-across-browsers/24595588#24595588