Reset lastDragTime when condition is not met

This commit is contained in:
ahocevar
2018-12-21 22:23:56 +01:00
parent 100e69e286
commit 409c962caf
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;
}
}