Skip inactive interactions
This commit is contained in:
1 parent
de319b9ae8
commit
2248d2e012
1 file changed
+3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user