react-virtual-sortable 1.1.2 → 1.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -36,11 +36,11 @@ function Virtual() {
36
36
  style={{ height: '500px' }}
37
37
  >
38
38
  {
39
- (record, index, dataKey) => {
39
+ (item, index, dataKey) => {
40
40
  return (
41
41
  <div>
42
42
  <span className=".handle">{ index }</span>
43
- { record.text }
43
+ { item.text }
44
44
  </div>
45
45
  )
46
46
  }
@@ -58,6 +58,7 @@ function Virtual() {
58
58
  | --------------- | ---------- | --------------------------------------- |
59
59
  | `onTop` | `Function` | Scrolling to the top of the scroller |
60
60
  | `onBottom` | `Function` | Scrolling to the bottom of the scroller |
61
+ | `onScroll` | `Function` | Scroll event |
61
62
  | `onDrag` | `Function` | Drag is started |
62
63
  | `onDrop` | `Function` | Drag is complete |
63
64
  | `onRangeChange` | `Function` | Range of visible items has changed |
@@ -129,7 +130,7 @@ return (
129
130
  ...
130
131
  >
131
132
  {
132
- (record) => <div>{ record.text }</div>
133
+ (item) => <div>{ item.text }</div>
133
134
  }
134
135
  </virtualList>
135
136
  )