Reset the map focus on 'mouseout' and 'touchend'
This commit is contained in:
@@ -652,7 +652,8 @@ ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) {
|
|||||||
// coordinates so interactions cannot be used.
|
// coordinates so interactions cannot be used.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mapBrowserEvent.type == goog.events.EventType.MOUSEOUT) {
|
if (mapBrowserEvent.type == goog.events.EventType.MOUSEOUT ||
|
||||||
|
mapBrowserEvent.type == goog.events.EventType.TOUCHEND) {
|
||||||
this.focus_ = null;
|
this.focus_ = null;
|
||||||
} else {
|
} else {
|
||||||
this.focus_ = mapBrowserEvent.getCoordinate();
|
this.focus_ = mapBrowserEvent.getCoordinate();
|
||||||
|
|||||||
Reference in New Issue
Block a user