From 2248d2e012e287ed81c0fc756ab542c6bdc686c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 23 Sep 2014 08:53:00 +0200 Subject: [PATCH] Skip inactive interactions --- src/ol/map.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ol/map.js b/src/ol/map.js index 3bb5c49755..080d7d39c3 100644 --- a/src/ol/map.js +++ b/src/ol/map.js @@ -858,6 +858,9 @@ ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) { if (this.dispatchEvent(mapBrowserEvent) !== false) { for (i = interactionsArray.length - 1; i >= 0; i--) { var interaction = interactionsArray[i]; + if (!interaction.getActive()) { + continue; + } var cont = interaction.handleMapBrowserEvent(mapBrowserEvent); if (!cont) { break;