mzubala / jquery-custom-scrollbar

189 stars 102 forks source link

Touch scrolling is too fast (fix) #4

Closed martinkorner closed 11 years ago

martinkorner commented 11 years ago

If it helps anyone else; I found that the touch/drag scrolling speed was much faster than it would normally be in the browser (Google Chrome on touch-screen PC).

This can be fixed by just changing line 406:

this.moveScroll(event.touches[0], -1);

to:

this.moveScroll(event.touches[0], -this.ratio);

I haven't tested this on mobile devices as this was not relevant in my current project.

mzubala commented 11 years ago

Thanks for this suggestion. I'll check that on mobile devices.

mzubala commented 11 years ago

Yes it works better on mobile devices. I'm pulling your code in.

martinkorner commented 11 years ago

Great, glad I could help :+1: