stopPropagation/preventDefault on originalEvent
Move stopPropagation/preventDefault to directly target the originalEvent rather than the mapBrowserEvent.
This commit is contained in:
@@ -81,7 +81,7 @@ class KeyboardZoom extends Interaction {
|
||||
charCode == '+'.charCodeAt(0) ? this.delta_ : -this.delta_;
|
||||
const view = map.getView();
|
||||
zoomByDelta(view, delta, undefined, this.duration_);
|
||||
mapBrowserEvent.originalEvent.preventDefault();
|
||||
keyEvent.preventDefault();
|
||||
stopEvent = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user