Initial version
parent
4c903cbcde
commit
30ad133a01
1 changed files with 16 additions and 0 deletions
16
How-does-it-work.md
Normal file
16
How-does-it-work.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# Importing selectableScroll
|
||||
|
||||
1. Import jQuery/jQuery-ui in the `<head>` tag first, then the plugin.
|
||||
2. If you want to use the modified selector lasso (sides disappearing when scrolling out of viewport), import the `jquery-ui-ext.css` after jQuery ui's own css file.
|
||||
|
||||
# Initializing selectableScroll on the container
|
||||
|
||||
3. Initialize the selectable on the parent container of selectables (which is mostly a scrollable div). Options are the same to the original ui-selectable, extended with these (copied from source):
|
||||
```
|
||||
scrollSnapX: 5, // When the selection is that pixels near to the top/bottom edges, start to scroll
|
||||
scrollSnapY: 5, // When the selection is that pixels near to the side edges, start to scroll
|
||||
scrollAmount: 25, // In pixels
|
||||
scrollIntervalTime: 100 // In milliseconds
|
||||
```
|
||||
|
||||
4. Profit!
|
Loading…
Reference in a new issue