Merge pull request #3203 from rachel-fenichel/drag_delta

Initialize drag delta to (0,0) and update annotation.
This commit is contained in:
Rachel Fenichel
2019-10-08 18:11:14 -07:00
committed by GitHub

View File

@@ -63,10 +63,10 @@ Blockly.Gesture = function(e, creatorWorkspace) {
/**
* How far the mouse has moved during this drag, in pixel units.
* (0, 0) is at this.mouseDownXY_.
* @type {Blockly.utils.Coordinate}
* @type {!Blockly.utils.Coordinate}
* @private
*/
this.currentDragDeltaXY_ = null;
this.currentDragDeltaXY_ = new Blockly.utils.Coordinate(0, 0);
/**
* The bubble that the gesture started on, or null if it did not start on a