Merge pull request #833 from elemoine/stop-other-interactions

Remove ol.MapBrowserEvent#stopOtherInteractions
This commit is contained in:
Éric Lemoine
2013-07-04 00:48:35 -07:00
9 changed files with 22 additions and 22 deletions

View File

@@ -672,8 +672,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;
}
}