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
This commit is contained in:
Aaron Dodson
2026-05-21 08:10:20 -07:00
committed by GitHub
parent 2b793a8784
commit 86d634cc7f
@@ -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)
) {