Disable connecting to last block in stack

This commit is contained in:
rachel-fenichel
2016-04-04 11:10:05 -07:00
parent 9323a01c35
commit a26fe6acf8

View File

@@ -846,11 +846,6 @@ Blockly.BlockSvg.prototype.onMouseMove_ = function(e) {
// Check to see if any of this block's connections are within range of
// another block's connection.
var myConnections = this.getConnections_(false);
// Also check the last connection on this stack
var lastOnStack = this.lastConnectionInStack_();
if (lastOnStack && lastOnStack != this.nextConnection) {
myConnections.push(lastOnStack);
}
var closestConnection = null;
var localConnection = null;
var radiusConnection = Blockly.SNAP_RADIUS;