Reset the map focus on 'mouseout' and 'touchend'

This commit is contained in:
Frederic Junod
2013-09-04 13:21:06 +02:00
parent 69107621bf
commit ae314916cf

View File

@@ -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();