malihu / malihu-custom-scrollbar-plugin

Highly customizable custom scrollbar jQuery plugin, featuring vertical/horizontal scrollbars, scrolling momentum, mouse-wheel, keyboard and touch support etc.
http://manos.malihu.gr/jquery-custom-content-scroller
MIT License
4.11k stars 1.51k forks source link

BUG scrollTo #349

Open imadige opened 8 years ago

imadige commented 8 years ago

BUGG

$(document).ready(function(){ $("#aa").mCustomScrollbar('scrollTo','bottom'); });

All scroll are moving.

malihu commented 8 years ago

Can you describe in more detail the issue? Do you have multiple scrollbars on the page and all scroll to bottom?

malihu commented 8 years ago

Does the #aa element exist in the page?

jaywick commented 7 years ago

@malihu I think I am having a similar issue. In my case I have multiple custom scrollbars and doing

$("#specificElement").mCustomScrollbar("scrollTo", $rowElement);

does not limit scrolling to only #specificElement's custom scrollbar.