diff --git a/core/block_drag_surface.js b/core/block_drag_surface.js index e394ab7d5..5e2e121c7 100644 --- a/core/block_drag_surface.js +++ b/core/block_drag_surface.js @@ -232,8 +232,7 @@ Blockly.BlockDragSurfaceSvg.prototype.getCurrentBlock = function() { */ Blockly.BlockDragSurfaceSvg.prototype.getWsTranslation = function() { // Returning a copy so the coordinate can not be changed outside this class. - return new Blockly.utils.Coordinate( - this.childSurfaceXY_.x, this.childSurfaceXY_.y); + return this.childSurfaceXY_.clone(); }; /**