Link interaction

This commit is contained in:
Tim Schaub
2022-05-20 13:24:43 -06:00
parent 3857e2051c
commit 6690dc99dd
6 changed files with 416 additions and 1 deletions
+5 -1
View File
@@ -155,7 +155,11 @@ class MouseWheelZoom extends Interaction {
*/
endInteraction_() {
this.trackpadTimeoutId_ = undefined;
const view = this.getMap().getView();
const map = this.getMap();
if (!map) {
return;
}
const view = map.getView();
view.endInteraction(
undefined,
this.lastDelta_ ? (this.lastDelta_ > 0 ? 1 : -1) : 0,