Skip to content

Commit

Permalink
fix: restore respecting snap radius (#7873)
Browse files Browse the repository at this point in the history
(cherry picked from commit a517317)
  • Loading branch information
BeksOmega authored and maribethb committed Feb 21, 2024
1 parent d782d7d commit 1dc91be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/block_dragger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1dc91be

Please sign in to comment.