Cast 'originalEvent' in interactions
This commit is contained in:
@@ -92,7 +92,7 @@ class KeyboardPan extends Interaction {
|
||||
function handleEvent(mapBrowserEvent) {
|
||||
let stopEvent = false;
|
||||
if (mapBrowserEvent.type == EventType.KEYDOWN) {
|
||||
const keyEvent = mapBrowserEvent.originalEvent;
|
||||
const keyEvent = /** @type {KeyboardEvent} */ (mapBrowserEvent.originalEvent);
|
||||
const keyCode = keyEvent.keyCode;
|
||||
if (this.condition_(mapBrowserEvent) &&
|
||||
(keyCode == KeyCode.DOWN ||
|
||||
|
||||
Reference in New Issue
Block a user