jQuery-slimScroll icon indicating copy to clipboard operation
jQuery-slimScroll copied to clipboard

Issue #220: Fix large scroll steps when content is long

Open MihaiBalint opened this issue 10 years ago • 4 comments

If the content-to-viewport ratio is very high then the bar should be tiny and the scroll step should be normal. However the delta formula does not consider the fact that the bar height is restricted to a minimum height (for usability) and incorrectly increases the scroll step length with the content size.

With large content (in my case it was 150 000px) and default options, the large step size makes scrolling very coarse to the point of unusable.

MihaiBalint avatar Oct 05 '15 13:10 MihaiBalint

I believe this also fixes #233 and possibly also #211

MihaiBalint avatar Dec 21 '15 15:12 MihaiBalint

2 thumbs up for this, you have fixed the scrollbar updating the position when using the scrollBy method for me. (essentialy #233)

kasperoo avatar Feb 19 '16 11:02 kasperoo

@MihaiBalint nice fix bro!

r3verser avatar Mar 27 '16 09:03 r3verser

I ran into large differences between browsers, has anyone looked at http://stackoverflow.com/questions/5527601/normalizing-mousewheel-speed-across-browsers

MacMaru avatar Dec 15 '16 15:12 MacMaru