Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,13 @@ export function handleMouseDown(
// Moving out of the initial cell -- start a new cell selection
$anchor = cellUnderMouse(view, startEvent);
if (!$anchor) return stop();
// Clear browser's native text selection when starting cross-cell selection
// This prevents text from being selected when first dragging across cells
const root = view.root as Document;
if (root.getSelection) {
const domSel = root.getSelection();
if (domSel) domSel.removeAllRanges();
}
}
if ($anchor) setCellSelection($anchor, event);
}
Expand Down
Loading