Skip to content

Commit

Permalink
fix: match Scratch behaviors around dragging and connection stickiness (
Browse files Browse the repository at this point in the history
  • Loading branch information
gonfunko authored May 17, 2024
1 parent 1f1c859 commit fd1bc58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ export function inject(container, options) {

buildGlowFilter(workspace);

Blockly.config.dragRadius = 3;
Blockly.config.snapRadius = 48;
Blockly.config.connectingSnapRadius = 68;
Blockly.config.currentConnectionPreference = 20;
Blockly.config.bumpDelay = 0;

return workspace;
}

Expand Down

0 comments on commit fd1bc58

Please sign in to comment.