From 585c397a0f449814e7b0f342fc5e9da7b2831d37 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 25 Feb 2013 16:01:22 +0100 Subject: [PATCH] Reset position on touch end --- src/ol/interaction/touchpaninteraction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ol/interaction/touchpaninteraction.js b/src/ol/interaction/touchpaninteraction.js index 0c21c78c4b..4d033932e9 100644 --- a/src/ol/interaction/touchpaninteraction.js +++ b/src/ol/interaction/touchpaninteraction.js @@ -87,6 +87,7 @@ ol.interaction.TouchPan.prototype.handleTouchEnd = } return false; } else { + this.lastCentroid = null; return true; } };