Nestable icon indicating copy to clipboard operation
Nestable copied to clipboard

Autoscroll while dragging

Open uniring opened this issue 12 years ago • 4 comments

Autoscrolls the container element while dragging if you drag the element over the offsets defined in scrollTriggers config option.

Also you can enable/disable this behaviour (disabled by default to be backwards compatible) and control the scroll sensitivity and speed.

New available options are:

* scroll                  (false)   Enable or disable the scrolling behaviour
* scrollSensitivity       (1)       Mouse movement needed to trigger the scroll
* scrollSpeed             (5)       Speed of the scroll
* scrollTriggers          (obj)     Distance from the border where scrolling become active
    top: 40
    left: 40
    right: -40
    bottom: -40

Solves Issue #17

uniring avatar Feb 20 '13 16:02 uniring

Thanks for this. It is worth mentioning this adds jQueryUI as a dependency to the project.

RamonDonnell avatar May 13 '13 04:05 RamonDonnell

Something needs to scroll, even the browser window, when you're dragging.

TomNM avatar Jul 11 '13 14:07 TomNM

/cc @dbushell This one as well. Works as expected with and without jquery ui.

peters avatar Nov 07 '13 09:11 peters

It's not working for me unless I include jQuery UI (draggable module and the corresponding depencies), also any help in making it work for IE8 will be appreciated

nagarajhubli avatar Jul 10 '14 10:07 nagarajhubli