Migrate core/workspace_dragger.js to ES6 const/let

This commit is contained in:
kozbial
2021-07-29 15:52:54 -07:00
committed by Monica Kozbial
parent 03de38c41a
commit bf831dd83e

View File

@@ -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);