From ce7be5397027839734f318485ceb71ed26f45335 Mon Sep 17 00:00:00 2001 From: wussup Date: Mon, 20 Apr 2020 15:51:27 +0200 Subject: [PATCH] Update MouseWheelZoom.js --- src/ol/interaction/MouseWheelZoom.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ol/interaction/MouseWheelZoom.js b/src/ol/interaction/MouseWheelZoom.js index a735b9dec8..744eb9241c 100644 --- a/src/ol/interaction/MouseWheelZoom.js +++ b/src/ol/interaction/MouseWheelZoom.js @@ -91,7 +91,10 @@ class MouseWheelZoom extends Interaction { * @private * @type {boolean} */ - this.constrainResolution_ = options.constrainResolution !== undefined ? options.constrainResolution : false; + this.constrainResolution_ = + options.constrainResolution !== undefined + ? options.constrainResolution + : false; /** * @private @@ -224,7 +227,7 @@ 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 {