How to switch vertical and horizontal mouse scroll?
-
26-09-2019 - |
Question
I have website with horizontal layout and i what to make mouse wheel scroll it relative to axis x (not y, like usual).
I use jQuery plugins mousewheel
and scrollTo
, but I can't achieve
soft, natural scroll.
You can look at the example on my test site
Solution
I answered a question similar to this... we ended up not using jQuery animation because it was choppy. Here is the demo.
Try changing the delta multiplier to change the amount the mousewheel scrolls:
this.scrollLeft -= (delta * 30);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow