From 86d634cc7fd887dca6752a2a4fe6fb651f90f935 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Thu, 21 May 2026 08:10:20 -0700 Subject: [PATCH] fix: Fix bug that caused blocks to skip valid destinations when moving with looping disabled (#9894) * fix: Fix bug that caused blocks to skip valid destinations when moving with looping disabled * chore: Remove errant logging --- packages/blockly/core/dragging/block_drag_strategy.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/blockly/core/dragging/block_drag_strategy.ts b/packages/blockly/core/dragging/block_drag_strategy.ts index 8f54ba30a..27b3a3afc 100644 --- a/packages/blockly/core/dragging/block_drag_strategy.ts +++ b/packages/blockly/core/dragging/block_drag_strategy.ts @@ -990,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) ) {