Stop handling events immediately when click tolerance is exceeded

This commit is contained in:
Andreas Hocevar
2018-01-11 21:28:23 +01:00
parent b05ad3d920
commit fbf951f005
2 changed files with 3 additions and 1 deletions

View File

@@ -423,6 +423,9 @@ Draw.prototype.handlePointerMove_ = function(event) {
this.shouldHandle_ = this.freehand_ ?
squaredDistance > this.squaredClickTolerance_ :
squaredDistance <= this.squaredClickTolerance_;
if (!this.shouldHandle_) {
return true;
}
}
if (this.finishCoordinate_) {