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

View File

@@ -82,6 +82,7 @@ ol.interaction.KeyboardPan.prototype.handleMapBrowserEvent =
ol.interaction.Interaction.pan(
map, view, delta, ol.interaction.KEYBOARD_PAN_DURATION);
mapBrowserEvent.preventDefault();
mapBrowserEvent.stopOtherInteractions();
}
}
};