stopPropagation/preventDefault on originalEvent

Move stopPropagation/preventDefault to directly target the
originalEvent rather than the mapBrowserEvent.
This commit is contained in:
Greg Gianforcaro
2020-12-09 11:42:53 -05:00
parent 92f93e8e94
commit 9c2b0677fa
5 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -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;
}
}