Question

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!

Was it helpful?

Solution

DOMMouseScroll event has an "axis" property

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

no idea about MSIE

OTHER TIPS

Latest version of JQuery MouseWheel plugin now suports horizontal scrolling as well as vertical one.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top