From 020b387649987c8edd6b267f80deabd809b6d5f4 Mon Sep 17 00:00:00 2001 From: wussup Date: Mon, 20 Apr 2020 15:56:05 +0200 Subject: [PATCH] Update MouseWheelZoom.js --- src/ol/interaction/MouseWheelZoom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/interaction/MouseWheelZoom.js b/src/ol/interaction/MouseWheelZoom.js index 744eb9241c..e7acb8a46f 100644 --- a/src/ol/interaction/MouseWheelZoom.js +++ b/src/ol/interaction/MouseWheelZoom.js @@ -95,7 +95,7 @@ class MouseWheelZoom extends Interaction { options.constrainResolution !== undefined ? options.constrainResolution : false; - + /** * @private * @type {import("../events/condition.js").Condition} @@ -227,7 +227,8 @@ class MouseWheelZoom extends Interaction { const view = map.getView(); if (this.mode_ === Mode.TRACKPAD && - !(view.getConstrainResolution() || this.constrainResolution_)) { + !(view.getConstrainResolution() || this.constrainResolution_)) + { if (this.trackpadTimeoutId_) { clearTimeout(this.trackpadTimeoutId_); } else {