Update MouseWheelZoom.js

This commit is contained in:
wussup
2020-04-20 15:39:36 +02:00
committed by GitHub
parent fc4ec899ca
commit aca8e0880c

View File

@@ -223,7 +223,8 @@ 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_);
} else {