diff --git a/core/block_svg.js b/core/block_svg.js index 9069ba2ad..6db02bc8c 100644 --- a/core/block_svg.js +++ b/core/block_svg.js @@ -828,6 +828,8 @@ Blockly.BlockSvg.prototype.onMouseMove_ = function(e) { if (this.parentBlock_) { // Push this block to the very top of the stack. this.unplug(); + var group = this.getSvgRoot(); + group.translate_ = 'translate(' + newXY.x + ',' + newXY.y + ')'; this.disconnectUiEffect(); } this.setDragging_(true); diff --git a/core/connection.js b/core/connection.js index beef7699a..434061be0 100644 --- a/core/connection.js +++ b/core/connection.js @@ -64,6 +64,7 @@ Blockly.Connection.REASON_DIFFERENT_WORKSPACES = 5; * Connect two connections together. * @param {!Blockly.Connection} parentConnection Connection on superior block. * @param {!Blockly.Connection} childConnection Connection on inferior block. + * @private */ Blockly.Connection.connect_ = function(parentConnection, childConnection) { var parentBlock = parentConnection.getSourceBlock();