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
+17-3
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,12 @@ Useful when you have custom scrollbar with dedicated scroll function.
53
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
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
55
56
-
**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
56
+
**Note that this option will only work if Sortable's autoscroll function is invoked.**
57
+
58
+
It is invoked if any of the following are true:
59
+
- The `forceFallback: true` option is set
60
+
- It is a mobile device
61
+
- The browser is either Safari, Internet Explorer, or Edge
57
62
58
63
59
64
---
@@ -62,7 +67,12 @@ This function should return `'continue'` if it wishes to allow Sortable's native
62
67
#### `scrollSensitivity` option
63
68
Defines how near the mouse must be to an edge to start scrolling.
64
69
65
-
**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
70
+
**Note that this option will only work if Sortable's autoscroll function is invoked.**
71
+
72
+
It is invoked if any of the following are true:
73
+
- The `forceFallback: true` option is set
74
+
- It is a mobile device
75
+
- The browser is either Safari, Internet Explorer, or Edge
66
76
67
77
68
78
---
@@ -71,8 +81,12 @@ Defines how near the mouse must be to an edge to start scrolling.
71
81
#### `scrollSpeed` option
72
82
The speed at which the window should scroll once the mouse pointer gets within the `scrollSensitivity` distance.
73
83
74
-
**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
84
+
**Note that this option will only work if Sortable's autoscroll function is invoked.**
75
85
86
+
It is invoked if any of the following are true:
87
+
- The `forceFallback: true` option is set
88
+
- It is a mobile device
89
+
- The browser is either Safari, Internet Explorer, or Edge
0 commit comments