Check workspace.isDragging() instead of Blockly.dragMode_

This commit is contained in:
Rachel Fenichel
2017-11-03 10:55:55 -07:00
parent 432881d2c1
commit 768bd4aef5

View File

@@ -1458,7 +1458,7 @@ Blockly.BlockSvg.prototype.bumpNeighbours_ = function() {
if (!this.workspace) {
return; // Deleted block.
}
if (Blockly.dragMode_ != Blockly.DRAG_NONE) {
if (this.workspace.isDragging()) {
return; // Don't bump blocks during a drag.
}
var rootBlock = this.getRootBlock();