diff --git a/src/ol/map.js b/src/ol/map.js index 0f5641eae3..aa32083e67 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -490,11 +490,12 @@ ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) { var interactions = this.getInteractions(); var interactionsArray = /** @type {Array.} */ interactions.getArray(); - goog.array.every(interactionsArray, function(interaction) { - interaction.handleMapBrowserEvent(mapBrowserEvent); - return !mapBrowserEvent.defaultPrevented; - }); - this.dispatchEvent(mapBrowserEvent); + if (this.dispatchEvent(mapBrowserEvent) !== false) { + goog.array.every(interactionsArray, function(interaction) { + interaction.handleMapBrowserEvent(mapBrowserEvent); + return !mapBrowserEvent.defaultPrevented; + }); + } };