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_);