stopPropagation/preventDefault on originalEvent
Move stopPropagation/preventDefault to directly target the originalEvent rather than the mapBrowserEvent.
This commit is contained in:
@@ -178,10 +178,9 @@ class MouseWheelZoom extends Interaction {
|
||||
return true;
|
||||
}
|
||||
|
||||
mapBrowserEvent.preventDefault();
|
||||
|
||||
const map = mapBrowserEvent.map;
|
||||
const wheelEvent = /** @type {WheelEvent} */ (mapBrowserEvent.originalEvent);
|
||||
wheelEvent.preventDefault();
|
||||
|
||||
if (this.useAnchor_) {
|
||||
this.lastAnchor_ = mapBrowserEvent.coordinate;
|
||||
|
||||
Reference in New Issue
Block a user