From 1dc91be12423b3b588f6fb8faaeb8452577077d6 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Wed, 21 Feb 2024 18:13:03 +0000 Subject: [PATCH] fix: restore respecting snap radius (#7873) (cherry picked from commit a517317b77c1e58727b748a99f9ae70b2c27d26a) --- core/block_dragger.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/block_dragger.ts b/core/block_dragger.ts index 26d265183..f914dfe20 100644 --- a/core/block_dragger.ts +++ b/core/block_dragger.ts @@ -333,7 +333,9 @@ export class BlockDragger implements IBlockDragger { delta: Coordinate, ): ConnectionCandidate | null { const localConns = this.getLocalConnections(draggingBlock); - let radius = config.snapRadius; + let radius = this.connectionCandidate + ? config.connectingSnapRadius + : config.snapRadius; let candidate = null; for (const conn of localConns) {