stopPropagation/preventDefault on originalEvent
Move stopPropagation/preventDefault to directly target the originalEvent rather than the mapBrowserEvent.
This commit is contained in:
@@ -112,7 +112,7 @@ class KeyboardPan extends Interaction {
|
||||
const delta = [deltaX, deltaY];
|
||||
rotateCoordinate(delta, view.getRotation());
|
||||
pan(view, delta, this.duration_);
|
||||
mapBrowserEvent.originalEvent.preventDefault();
|
||||
keyEvent.preventDefault();
|
||||
stopEvent = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user