Skip to content

Commit

Permalink
Fix dragging from the editor content
Browse files Browse the repository at this point in the history
FIX: Fix a regression that broke dragging text from inside the editor.

See https://discuss.codemirror.net/t/drag-and-drop-lines-of-text/7161
  • Loading branch information
marijnh committed Oct 2, 2023
1 parent 547161c commit 9586ecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ handlers.mousedown = (view, event: MouseEvent) => {
let mouseSel = view.inputState.mouseSelection
if (mouseSel) {
mouseSel.start(event)
return !mouseSel.dragging
return mouseSel.dragging === false
}
}
return false
Expand Down

0 comments on commit 9586ecd

Please sign in to comment.