Merge pull request #312 from rachel-fenichel/bugfix/last_connection_in_stack

Disable connecting to last block in stack
This commit is contained in:
Neil Fraser
2016-04-04 14:48:06 -07:00

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;