Don't handle a touch gesture event if the gesture has been cancelled.

This commit is contained in:
Sam El-Husseini
2018-03-05 09:50:38 -08:00
parent fda7122b86
commit 6326830e85

View File

@@ -110,7 +110,7 @@ Blockly.TouchGesture.ZOOM_OUT_MULTIPLIER = 6;
*/
Blockly.TouchGesture.prototype.doStart = function(e) {
Blockly.TouchGesture.superClass_.doStart.call(this, e);
if (Blockly.Touch.isTouchEvent(e)) {
if (!this.isEnding_ && Blockly.Touch.isTouchEvent(e)) {
this.handleTouchStart(e);
}
};