diff --git a/core/workspace_dragger.js b/core/workspace_dragger.js index 3ad07a20e..a0a6eef16 100644 --- a/core/workspace_dragger.js +++ b/core/workspace_dragger.js @@ -96,7 +96,7 @@ Blockly.WorkspaceDragger.prototype.endDrag = function(currentDragDeltaXY) { * @package */ Blockly.WorkspaceDragger.prototype.drag = function(currentDragDeltaXY) { - var newXY = Blockly.utils.Coordinate.sum(this.startScrollXY_, currentDragDeltaXY); + const newXY = Blockly.utils.Coordinate.sum(this.startScrollXY_, currentDragDeltaXY); if (this.horizontalScrollEnabled_ && this.verticalScrollEnabled_) { this.workspace_.scroll(newXY.x, newXY.y);