Skip to content

Commit

Permalink
fix: restore respecting snap radius
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega committed Feb 21, 2024
1 parent 0e3a6e9 commit 172a181
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 @@ -352,7 +352,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 172a181

Please sign in to comment.