I have a slimscroll applied content. I scroll to a content by using scrollTo
and scrollBy
parameters. Ex:
$element.slimScroll({scrollBy : '100px'});
It works and content is scrolled by given amount. However, scrollbar does not move and stays at top position and when I try to scroll the content by mouse wheel it will start to scroll from the top position, not from where I scrolled to by javascript. So, at first mouse wheel scroll, I see the content at the top, not the content below where I scrolled with javascript.
How can I solve this?