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

Was it helpful?

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
scroll top