From dead743ba0fd0d65c893d5ed30838f6123e10c17 Mon Sep 17 00:00:00 2001 From: DenisZ Date: Wed, 15 Mar 2023 11:30:15 +0100 Subject: [PATCH] FIX: Fix an issue with cursor jump in table cell Signed-off-by: DenisZ --- src/input.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input.ts b/src/input.ts index ac77568d..a6edd921 100644 --- a/src/input.ts +++ b/src/input.ts @@ -388,7 +388,7 @@ class MouseDown { // (hidden) cursor is doesn't change the selection, and // thus doesn't get a reaction from ProseMirror. This // works around that. - (browser.chrome && !this.view.state.selection.visible && + (browser.chrome && (!this.view.state.selection.visible || this.view.state.selection instanceof TextSelection) && Math.min(Math.abs(pos.pos - this.view.state.selection.from), Math.abs(pos.pos - this.view.state.selection.to)) <= 2))) { updateSelection(this.view, Selection.near(this.view.state.doc.resolve(pos.pos)), "pointer")