From 8f72baf6a57eacff73d3aa270ba20031e79295b4 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 18 May 2026 12:23:40 -0700 Subject: [PATCH 1/2] fix: Fix bug that caused blocks to skip valid destinations when moving with looping disabled --- packages/blockly/core/dragging/block_drag_strategy.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/blockly/core/dragging/block_drag_strategy.ts b/packages/blockly/core/dragging/block_drag_strategy.ts index ea5cadc7d16..bce59dde9c6 100644 --- a/packages/blockly/core/dragging/block_drag_strategy.ts +++ b/packages/blockly/core/dragging/block_drag_strategy.ts @@ -476,6 +476,7 @@ export class BlockDragStrategy implements IDragStrategy { /** Moves the block and updates any connection previews. */ drag(newLoc: Coordinate, e?: PointerEvent | KeyboardEvent): void { + console.log(this.allConnectionPairs); this.moveMode = e instanceof KeyboardEvent && !(e.ctrlKey || e.metaKey) ? MoveMode.CONSTRAINED @@ -989,7 +990,8 @@ export class BlockDragStrategy implements IDragStrategy { for (let i = start; i >= 0 && i < topBlocks.length; i += delta) { const topBlock = topBlocks[i]; for (const a of blockConnections) { - for (const b of topBlock.getConnections_(false)) { + const stackConnections = this.getAllConnections(topBlock); + for (const b of stackConnections) { if ( block.workspace.connectionChecker.canConnect(a, b, true, Infinity) ) { From 55dfa4694d95153c403f07a4d65efd3075c13fef Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Mon, 18 May 2026 12:24:57 -0700 Subject: [PATCH 2/2] chore: Remove errant logging --- packages/blockly/core/dragging/block_drag_strategy.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/blockly/core/dragging/block_drag_strategy.ts b/packages/blockly/core/dragging/block_drag_strategy.ts index bce59dde9c6..ef16ae54348 100644 --- a/packages/blockly/core/dragging/block_drag_strategy.ts +++ b/packages/blockly/core/dragging/block_drag_strategy.ts @@ -476,7 +476,6 @@ export class BlockDragStrategy implements IDragStrategy { /** Moves the block and updates any connection previews. */ drag(newLoc: Coordinate, e?: PointerEvent | KeyboardEvent): void { - console.log(this.allConnectionPairs); this.moveMode = e instanceof KeyboardEvent && !(e.ctrlKey || e.metaKey) ? MoveMode.CONSTRAINED