Resolve some test failures
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.preventDefault();
|
||||
mapBrowserEvent.originalEvent.preventDefault();
|
||||
stopEvent = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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.preventDefault();
|
||||
mapBrowserEvent.originalEvent.preventDefault();
|
||||
stopEvent = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ class PointerInteraction extends Interaction {
|
||||
if (mapBrowserEvent.type == MapBrowserEventType.POINTERDRAG) {
|
||||
this.handleDragEvent(mapBrowserEvent);
|
||||
// prevent page scrolling during dragging
|
||||
mapBrowserEvent.preventDefault();
|
||||
mapBrowserEvent.originalEvent.preventDefault();
|
||||
} else if (mapBrowserEvent.type == MapBrowserEventType.POINTERUP) {
|
||||
const handledUp = this.handleUpEvent(mapBrowserEvent);
|
||||
this.handlingDownUpSequence =
|
||||
|
||||
Reference in New Issue
Block a user