"Disabling" iScroll on draggable elements

1,285 views
Skip to first unread message

Koviko

unread,
Mar 5, 2012, 1:41:34 PM3/5/12
to isc...@googlegroups.com
We want to have a slider that can be dragged. However, dragging the slider causes the entire screen to drag. Is there a way to disable iScroll while the slider is being dragged?

Kerri Shotts

unread,
Mar 5, 2012, 10:19:52 PM3/5/12
to isc...@googlegroups.com
You should be able to call .disable() on the scroller at the start of the drag and then .enable() when done.

Koviko

unread,
Mar 6, 2012, 4:58:42 PM3/6/12
to isc...@googlegroups.com
Works great. Thanks. :)

Lauri Ojamets

unread,
Feb 26, 2013, 6:35:58 AM2/26/13
to isc...@googlegroups.com

I found the solution that ZoranJambor has made on github:

https://github.com/ZoranJambor/iscroll

He's iScroll has an additional parameter draggableScrollbars that can be set to true if you would like to have draggable scrollbars.

See also the example at:

https://github.com/ZoranJambor/iscroll/tree/master/examples/draggable-scrollbars

Reply all
Reply to author
Forward
0 new messages