mirror of
https://github.com/google/blockly.git
synced 2026-03-08 22:30:09 +01:00
Check if both sides of a potential connection match, not just one
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user