From 875ffad42c80419d4af86f639f2bf877e5231f13 Mon Sep 17 00:00:00 2001 From: Neil Fraser Date: Wed, 3 Aug 2016 18:33:14 -0700 Subject: [PATCH] Fix selection bug on bumps caused by mutator actions. --- core/rendered_connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/rendered_connection.js b/core/rendered_connection.js index 552248526..dcb90f1b0 100644 --- a/core/rendered_connection.js +++ b/core/rendered_connection.js @@ -86,7 +86,7 @@ Blockly.RenderedConnection.prototype.bumpAwayFrom_ = function(staticConnection) } // Raise it to the top for extra visibility. var selected = Blockly.selected == rootBlock; - selected || rootBlock.select(); + selected || rootBlock.addSelect(); var dx = (staticConnection.x_ + Blockly.SNAP_RADIUS) - this.x_; var dy = (staticConnection.y_ + Blockly.SNAP_RADIUS) - this.y_; if (reverse) { @@ -97,7 +97,7 @@ Blockly.RenderedConnection.prototype.bumpAwayFrom_ = function(staticConnection) dx = -dx; } rootBlock.moveBy(dx, dy); - selected || rootBlock.unselect(); + selected || rootBlock.removeSelect(); }; /**