rochal/jQuery-slimScroll — Issue #10: Context-sensitive scrolling
Author: pestaa
Created: 2011-12-04 15:37:07+00:00
State: open

Hi, I patched the `scrollContent` function so that I can specify `wheelStep` in the percent of the actual bar height.

delta = parseInt( bar.css('top') ) + y * wheelStep / 100 * bar.outerHeight();

This was needed because I have rapidly a changing container in height, and a low `wheelStep` value was too slow for the whole list, and a too high value wasn't good enough for the small list either.

This way I can set `wheelStep` to 50, and have comfortable scrolling speed all the time.

I didn't incorporate the change in a pull request because I don't know how it should be done. (Yet another setting, maybe?)

Hope other finds this useful. Thank you for the great, "set-and-forget...or-enjoy-actually" software!