diff --git a/packages/blockly/core/gesture.ts b/packages/blockly/core/gesture.ts index 8628f938f..31feda7a0 100644 --- a/packages/blockly/core/gesture.ts +++ b/packages/blockly/core/gesture.ts @@ -1004,8 +1004,8 @@ export class Gesture { this.setTargetBlock(block.getParent()!); } else { this.targetBlock = block; - getFocusManager().focusNode(this.targetBlock); this.targetBlock.bringToFront(); + getFocusManager().focusNode(this.targetBlock); } }