Add ol.MapBrowserEvent.stopOtherInteractions

When called, stops the interaction chain.
This commit is contained in:
Frederic Junod
2013-06-18 12:59:30 +02:00
parent 2bd87313cd
commit bed44dd82c
6 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -644,7 +644,7 @@ ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) {
for (i = interactionsArray.length - 1; i >= 0; i--) {
var interaction = interactionsArray[i];
interaction.handleMapBrowserEvent(mapBrowserEvent);
if (mapBrowserEvent.defaultPrevented) {
if (mapBrowserEvent.otherInteractionsStopped) {
break;
}
}