From 2ee62bc3772a48744bd2c828d57730fda9a35b45 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 22 Dec 2025 09:08:40 -0800 Subject: [PATCH] fix: Don't select shadow blocks on click --- core/gesture.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/gesture.ts b/core/gesture.ts index fa3d8a15138..ecb8c8da8f4 100644 --- a/core/gesture.ts +++ b/core/gesture.ts @@ -777,13 +777,11 @@ export class Gesture { this.setStartWorkspace(ws); this.mostRecentEvent = e; - if (!this.startBlock && !this.startBubble && !this.startComment) { + if (!this.targetBlock && !this.startBubble && !this.startComment) { // Ensure the workspace is selected if nothing else should be. Note that // this is focusNode() instead of focusTree() because if any active node // is focused in the workspace it should be defocused. getFocusManager().focusNode(ws); - } else if (this.startBlock) { - getFocusManager().focusNode(this.startBlock); } this.doStart(e);