jQuery mouse wheel horizontally
-
20-09-2019 - |
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!
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