Resolve some test failures
This commit is contained in:
@@ -112,7 +112,7 @@ class KeyboardPan extends Interaction {
|
|||||||
const delta = [deltaX, deltaY];
|
const delta = [deltaX, deltaY];
|
||||||
rotateCoordinate(delta, view.getRotation());
|
rotateCoordinate(delta, view.getRotation());
|
||||||
pan(view, delta, this.duration_);
|
pan(view, delta, this.duration_);
|
||||||
mapBrowserEvent.preventDefault();
|
mapBrowserEvent.originalEvent.preventDefault();
|
||||||
stopEvent = true;
|
stopEvent = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ class KeyboardZoom extends Interaction {
|
|||||||
charCode == '+'.charCodeAt(0) ? this.delta_ : -this.delta_;
|
charCode == '+'.charCodeAt(0) ? this.delta_ : -this.delta_;
|
||||||
const view = map.getView();
|
const view = map.getView();
|
||||||
zoomByDelta(view, delta, undefined, this.duration_);
|
zoomByDelta(view, delta, undefined, this.duration_);
|
||||||
mapBrowserEvent.preventDefault();
|
mapBrowserEvent.originalEvent.preventDefault();
|
||||||
stopEvent = true;
|
stopEvent = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,7 @@ class PointerInteraction extends Interaction {
|
|||||||
if (mapBrowserEvent.type == MapBrowserEventType.POINTERDRAG) {
|
if (mapBrowserEvent.type == MapBrowserEventType.POINTERDRAG) {
|
||||||
this.handleDragEvent(mapBrowserEvent);
|
this.handleDragEvent(mapBrowserEvent);
|
||||||
// prevent page scrolling during dragging
|
// prevent page scrolling during dragging
|
||||||
mapBrowserEvent.preventDefault();
|
mapBrowserEvent.originalEvent.preventDefault();
|
||||||
} else if (mapBrowserEvent.type == MapBrowserEventType.POINTERUP) {
|
} else if (mapBrowserEvent.type == MapBrowserEventType.POINTERUP) {
|
||||||
const handledUp = this.handleUpEvent(mapBrowserEvent);
|
const handledUp = this.handleUpEvent(mapBrowserEvent);
|
||||||
this.handlingDownUpSequence =
|
this.handlingDownUpSequence =
|
||||||
|
|||||||
Reference in New Issue
Block a user