You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/AutoScroll/README.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,9 +49,11 @@ Demo:
49
49
50
50
51
51
#### `scrollFn` option
52
-
Defines function that will be used for autoscrolling. el.scrollTop/el.scrollLeft is used by default.
53
52
Useful when you have custom scrollbar with dedicated scroll function.
54
-
This function should return `'continue'` if it wishes to allow Sortable's native autoscrolling.
53
+
Defines a function that will be used for autoscrolling. Sortable uses el.scrollTop/el.scrollLeft by default. Set this option if you wish to handle it differently.
54
+
This function should return `'continue'` if it wishes to allow Sortable's native autoscrolling, otherwise Sortable will not scroll anything if this option is set.
55
+
56
+
**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
55
57
56
58
57
59
---
@@ -60,13 +62,17 @@ This function should return `'continue'` if it wishes to allow Sortable's native
60
62
#### `scrollSensitivity` option
61
63
Defines how near the mouse must be to an edge to start scrolling.
62
64
65
+
**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
66
+
63
67
64
68
---
65
69
66
70
67
71
#### `scrollSpeed` option
68
72
The speed at which the window should scroll once the mouse pointer gets within the `scrollSensitivity` distance.
69
73
74
+
**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
0 commit comments