Skip to content

Commit

Permalink
Further improve AutoScroll docs
Browse files Browse the repository at this point in the history
  • Loading branch information
owen-m1 committed Jan 6, 2021
1 parent cd2d6e2 commit 7408673
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions plugins/AutoScroll/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ Useful when you have custom scrollbar with dedicated scroll function.
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.
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.

**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
**Note that this option will only work if Sortable's autoscroll function is invoked.**

It is invoked if any of the following are true:
- The `forceFallback: true` option is set
- It is a mobile device
- The browser is either Safari, Internet Explorer, or Edge


---
Expand All @@ -62,7 +67,12 @@ This function should return `'continue'` if it wishes to allow Sortable's native
#### `scrollSensitivity` option
Defines how near the mouse must be to an edge to start scrolling.

**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
**Note that this option will only work if Sortable's autoscroll function is invoked.**

It is invoked if any of the following are true:
- The `forceFallback: true` option is set
- It is a mobile device
- The browser is either Safari, Internet Explorer, or Edge


---
Expand All @@ -71,8 +81,12 @@ Defines how near the mouse must be to an edge to start scrolling.
#### `scrollSpeed` option
The speed at which the window should scroll once the mouse pointer gets within the `scrollSensitivity` distance.

**Note that this option will only work on all browsers/devices if Sortable's `forceFallback: true` option is set.**
**Note that this option will only work if Sortable's autoscroll function is invoked.**

It is invoked if any of the following are true:
- The `forceFallback: true` option is set
- It is a mobile device
- The browser is either Safari, Internet Explorer, or Edge

---

Expand Down

0 comments on commit 7408673

Please sign in to comment.