mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
Add two workarounds for Chrome/ProseMirror drag-selection breakage: 1. DragSelectionGuard extension — suppresses selectionchange → selectionToDOM during active drags, blocks CellSelection transactions from prosemirror-tables, and restores native selection post-mouseup to preserve table-cell highlighting. 2. safeReactNodeViewRenderer — patches handleSelectionUpdate so selectNode/ deselectNode only fire for actual NodeSelections, preventing React re-renders mid-drag that disrupt native selection tracking (Tiptap #7647).