开发者

Turn off auto centering with JQuery scrollable

开发者 https://www.devze.com 2022-12-08 05:10 出处:网络
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?

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});
0

精彩评论

暂无评论...
验证码 换一张
取 消