mirror of
https://github.com/google/blockly.git
synced 2026-01-11 10:57:07 +01:00
Migrate core/workspace_dragger.js to ES6 const/let
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user