Skip to content

Commit b3deea8

Browse files
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/TableDragAndDropColumns.stories.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ function DefaultDemo() {
118118
}
119119

120120
/**
121-
* Focus the handle at the end of a column's header and press Space or Enter,
122-
* then Left and Right, to move the column one place at a time. Or tap the
123-
* handle, then the hint's moves. Escape or Done ends reorder mode.
121+
* Drag a column by the handle at the end of its header, or focus the handle
122+
* and press Space or Enter, then Left and Right, to move it one place at a
123+
* time. Escape ends reorder mode.
124124
*/
125125
export const Default: StoryObj = {
126126
render: () => <DefaultDemo />,

0 commit comments

Comments
 (0)