Merge pull request #9083 from ahocevar/fix-draw-condition

Reset lastDragTime when condition is not met
This commit is contained in:
Andreas Hocevar
2018-12-31 11:24:33 +01:00
committed by GitHub
2 changed files with 43 additions and 1 deletions

View File

@@ -543,6 +543,7 @@ class Draw extends PointerInteraction {
this.downPx_ = event.pixel;
return true;
} else {
this.lastDragTime_ = undefined;
return false;
}
}