Repository navigation
Commit b3deea8
committed
feat(lab): drag Table columns by their reorder handle
A mouse drags a column sideways by its handle at once, and a finger after List's hold. A line marks the drop place nearest the dragged column, the scroll area scrolls near its inline edges at List's speeds, and the columns move once, at the drop. The drag uses List's pointer input and edge autoscroll, with one listener for the table. It reads the header cells' boxes as it begins, and again only once column windowing mounts other cells; each move reads the scroll offset alone.1 parent bf634c2 commit b3deea8
7 files changed
Lines changed: 1468 additions & 41 deletions
File tree
- apps/storybook/stories
- packages/lab/src/TableDragAndDrop
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
0 commit comments