wmh/jquery-scrollbox

Choppy vertical scrolling

Closed this issue · 1 comments

When the

  • item has css padding or margin applied to it, the scrolling effect is choppy and not smooth as it should be.
    To fix this issue the outterHeight function can be used instead of the height function for calculating the
  • 's actual height.

    Proposed solution:
    scrollDistance = config.distance !== 'auto' ? config.distance :
    config.direction === 'vertical' ? curLi.outerHeight(true) : curL.outerWidth(true);

    (I am new to GitHub I don't know if I could have committed this change myself)

    Thanks in advance,
    Athos

  • wmh commented

    Hi chakkos,

    Thanks for this useful solution 👍
    I'll try it later and update this script to a new version.

    If you wish to try contribute in Github, you could use pull request. Here's how:
    https://help.github.com/articles/using-pull-requests