ol.MapBrowserEvent: call browserEvent.{preventDefault|stopPropagation}

This commit is contained in:
Frederic Junod
2013-06-14 09:45:45 +02:00
parent 4392feef1b
commit 2bd87313cd
6 changed files with 20 additions and 4 deletions

View File

@@ -81,7 +81,6 @@ ol.interaction.KeyboardPan.prototype.handleMapBrowserEvent =
ol.coordinate.rotate(delta, rotation);
ol.interaction.Interaction.pan(
map, view, delta, ol.interaction.KEYBOARD_PAN_DURATION);
keyEvent.preventDefault();
mapBrowserEvent.preventDefault();
}
}