views:

677

answers:

1

Hi!

Is there any way to detect if the mouse wheel is scrolling sideways in Javascript? I am now using the excellent jquery.mousewheel.3.0.2 plugin, but I couldn't find any relevant parameters on the event. Please help!

+1  A: 

DOMMouseScroll event has an "axis" property

https://developer.mozilla.org/en/Gecko-Specific_DOM_Events#Determining_the_scroll_direction

no idea about MSIE

stereofrog
Seems to be Firefox 3.5+ specific according to both Mozilla docs and a Closure comment. I take what I can get, thank you!
Znarkus