mirror of
https://github.com/google/blockly.git
synced 2026-06-02 09:20:06 +02:00
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:
@@ -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)
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user