Merge pull request #8246 from ahocevar/movetolerance-dragging

Don't go back to not moving when dragging
This commit is contained in:
Andreas Hocevar
2018-06-14 13:28:48 +02:00
committed by GitHub
2 changed files with 17 additions and 1 deletions

View File

@@ -301,7 +301,8 @@ MapBrowserEventHandler.prototype.relayEvent_ = function(pointerEvent) {
* @private
*/
MapBrowserEventHandler.prototype.isMoving_ = function(pointerEvent) {
return Math.abs(pointerEvent.clientX - this.down_.clientX) > this.moveTolerance_ ||
return this.dragging_ ||
Math.abs(pointerEvent.clientX - this.down_.clientX) > this.moveTolerance_ ||
Math.abs(pointerEvent.clientY - this.down_.clientY) > this.moveTolerance_;
};