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: README.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -106,10 +106,10 @@ There are already a number of great Drag & Drop libraries out there (for instanc
106
106
| pressThreshold | Number |`5`| Number of pixels of movement to tolerate before ignoring a press event. |
107
107
| distance | Number |`0`| If you'd like elements to only become sortable after being dragged a certain number of pixels. Cannot be used in conjunction with the `pressDelay` prop. |
108
108
| shouldCancelStart | Function |[Function](https://github.com/clauderic/react-sortable-hoc/blob/master/src/SortableContainer/index.js#L48)| This function is invoked before sorting begins, and can be used to programatically cancel sorting before it begins. By default, it will cancel sorting if the event target is either an `input`, `textarea`, `select` or `option`. |
109
-
| updateBeforeSortStart | Function || This function is invoked before sorting begins. It can return a promise, allowing you to run asynchronous updates (such as `setState`) before sorting begins. `function({node, index, collection}, event)`|
109
+
| updateBeforeSortStart | Function || This function is invoked before sorting begins. It can return a promise, allowing you to run asynchronous updates (such as `setState`) before sorting begins. `function({node, index, collection, isKeySorting}, event)`|
110
110
| onSortStart | Function || Callback that is invoked when sorting begins. `function({node, index, collection, isKeySorting}, event)`|
111
111
| onSortMove | Function || Callback that is invoked during sorting as the cursor moves. `function(event)`|
112
-
| onSortOver | Function || Callback that is invoked when moving over an item. `function({index, oldIndex, newIndex, collection}, e)`|
112
+
| onSortOver | Function || Callback that is invoked when moving over an item. `function({index, oldIndex, newIndex, collection, isKeySorting}, e)`|
113
113
| onSortEnd | Function || Callback that is invoked when sorting ends. `function({oldIndex, newIndex, collection, isKeySorting}, e)`|
114
114
| useDragHandle | Boolean |`false`| If you're using the `SortableHandle` HOC, set this to `true`|
115
115
| useWindowAsScrollContainer | Boolean |`false`| If you want, you can set the `window` as the scrolling container |
0 commit comments