Remove ol.MapBrowserEvent#stopOtherInteractions

and check for false/true in the return from handleMapBrowserEvent. Refs #791.
This commit is contained in:
Éric Lemoine
2013-06-27 08:24:31 +02:00
parent a7ca22dde0
commit 6fc4aa68b6
9 changed files with 22 additions and 22 deletions

View File

@@ -667,8 +667,8 @@ ol.Map.prototype.handleMapBrowserEvent = function(mapBrowserEvent) {
if (this.dispatchEvent(mapBrowserEvent) !== false) {
for (i = interactionsArray.length - 1; i >= 0; i--) {
var interaction = interactionsArray[i];
interaction.handleMapBrowserEvent(mapBrowserEvent);
if (mapBrowserEvent.otherInteractionsStopped) {
var cont = interaction.handleMapBrowserEvent(mapBrowserEvent);
if (!cont) {
break;
}
}