From 768bd4aef5b8fe78b7a266c4e9eaadc82b632f19 Mon Sep 17 00:00:00 2001 From: Rachel Fenichel Date: Fri, 3 Nov 2017 10:55:55 -0700 Subject: [PATCH] Check workspace.isDragging() instead of Blockly.dragMode_ --- core/block_svg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/block_svg.js b/core/block_svg.js index 56671d1a2..f6cdadc0d 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -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();