From ae314916cfeac3b88baa613d577b716e9ba10e8a Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 4 Sep 2013 13:21:06 +0200 Subject: [PATCH] Reset the map focus on 'mouseout' and 'touchend' --- src/ol/map.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/map.js b/src/ol/map.js index e9702611fa..bdd1332ff0 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -652,7 +652,8 @@ ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) { // coordinates so interactions cannot be used. return; } - if (mapBrowserEvent.type == goog.events.EventType.MOUSEOUT) { + if (mapBrowserEvent.type == goog.events.EventType.MOUSEOUT || + mapBrowserEvent.type == goog.events.EventType.TOUCHEND) { this.focus_ = null; } else { this.focus_ = mapBrowserEvent.getCoordinate();