mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
fix: restore respecting snap radius (#7873)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user