mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-12-05 11:15:01 +03:00
Port the BlockSuite rowDrag and columnDrag gestures to the Simple Table axis pills, in Page mode and in an edited Edgeless note. - A click on a pill opens the axis menu as before. Like the BlockSuite pill click, the press and the release must be on the same pill, and the pointer must not move more than 10 px along the axis. - A longer drag closes the menu and hides the pills and add bars. It tints the dragged row or column and shows a preview of its cells that follows the pointer. A 5 px indicator marks the target gap. The gap rule is the same as getTargetIndexByDraggingOffset. - The release writes one fractional order key through the new PageDocSession::move_table_axis_to, in one undo step. Cell text, colors and column widths stay with the row or column. - A release at the start gap writes nothing. Escape stops the drag and writes nothing. - move_table_axis now uses move_table_axis_to.