From b6fc2bf2fe02b42af3dbf0aede6173a6b372d12b Mon Sep 17 00:00:00 2001 From: wussup Date: Mon, 20 Apr 2020 15:58:42 +0200 Subject: [PATCH] Update MouseWheelZoom.js --- src/ol/interaction/MouseWheelZoom.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ol/interaction/MouseWheelZoom.js b/src/ol/interaction/MouseWheelZoom.js index e7acb8a46f..9702ec4ccc 100644 --- a/src/ol/interaction/MouseWheelZoom.js +++ b/src/ol/interaction/MouseWheelZoom.js @@ -226,8 +226,10 @@ class MouseWheelZoom extends Interaction { } const view = map.getView(); - if (this.mode_ === Mode.TRACKPAD && - !(view.getConstrainResolution() || this.constrainResolution_)) + if ( + this.mode_ === Mode.TRACKPAD && + !(view.getConstrainResolution() || this.constrainResolution_) + ) { if (this.trackpadTimeoutId_) { clearTimeout(this.trackpadTimeoutId_);