Turn off auto centering with JQuery scrollable
With the JQuery scrollable widget. If you click the top, it scrolls to开发者_StackOverflow the middle. Is there any way to leave the "clicked" elements within the widget where they are when clicked?
[Position1]
[Position2]
[Position3]
[Position4]
[Position5]
For example, if I click Position5, I want it to stay in its place, NOT scroll itself into Position 3.
Any ideas?
You can pass parameter clickable:false
to the scrollable initializer:
$("#scroller").scrollable({clickable:false});
精彩评论