Skip to content

Commit 7a57f5b

Browse files
committed
fix: native teardrop thing
1 parent 6cd119b commit 7a57f5b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/cm/touchSelectionMenu.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,12 @@ class TouchSelectionMenuController {
621621
return;
622622
}
623623

624-
this.#moveCursorToCoords(clientX, clientY);
624+
const moved = this.#moveCursorToCoords(clientX, clientY);
625+
if (moved != null) {
626+
event.preventDefault();
627+
event.stopPropagation();
628+
this.#view.focus();
629+
}
625630
this.#selectionActive = false;
626631
this.#hideMenu();
627632
this.#removeSelectionHandles();

0 commit comments

Comments
 (0)