From f5ea0f665e812c45027870156b6d0aa45fa03571 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Mon, 3 Dec 2018 11:35:28 -0800 Subject: [PATCH] Tweak insertion marker snap radii --- core/constants.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/constants.js b/core/constants.js index 622d3a473..229ca0d4d 100644 --- a/core/constants.js +++ b/core/constants.js @@ -42,20 +42,20 @@ Blockly.FLYOUT_DRAG_RADIUS = 10; /** * Maximum misalignment between connections for them to snap together. */ -Blockly.SNAP_RADIUS = 36; +Blockly.SNAP_RADIUS = 28; /** * Maximum misalignment between connections for them to snap together, * when a connection is already highlighted. */ -Blockly.CONNECTING_SNAP_RADIUS = 48; +Blockly.CONNECTING_SNAP_RADIUS = Blockly.SNAP_RADIUS; /** * How much to prefer staying connected to the current connection over moving to * a new connection. The current previewed connection is considered to be this * much closer to the matching connection on the block than it actually is. */ -Blockly.CURRENT_CONNECTION_PREFERENCE = 0; +Blockly.CURRENT_CONNECTION_PREFERENCE = 8; /** * The main colour of insertion markers, in hex. The block is rendered a