From 1553096b480e3769bb7dc29b7476960aaeac1b84 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Fri, 30 Nov 2018 14:46:09 -0800 Subject: [PATCH] Check if both sides of a potential connection match, not just one --- core/insertion_marker_manager.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/insertion_marker_manager.js b/core/insertion_marker_manager.js index fb2fbd81b..f94677c8d 100644 --- a/core/insertion_marker_manager.js +++ b/core/insertion_marker_manager.js @@ -335,7 +335,8 @@ Blockly.InsertionMarkerManager.prototype.shouldUpdatePreviews_ = function( // Decide whether the new connection has higher priority. if (this.localConnection_ && this.closestConnection_) { // The connection was the same as the current connection. - if (this.closestConnection_ == candidateClosest) { + if (this.closestConnection_ == candidateClosest && + this.localConnection_ == candidateLocal) { return false; } var xDiff = this.localConnection_.x_ + dxy.x - this.closestConnection_.x_;