Update MouseWheelZoom.js

This commit is contained in:
wussup
2020-04-20 15:58:42 +02:00
committed by GitHub
parent 020b387649
commit b6fc2bf2fe
+4 -2
View File
@@ -226,8 +226,10 @@ class MouseWheelZoom extends Interaction {
} }
const view = map.getView(); const view = map.getView();
if (this.mode_ === Mode.TRACKPAD && if (
!(view.getConstrainResolution() || this.constrainResolution_)) this.mode_ === Mode.TRACKPAD &&
!(view.getConstrainResolution() || this.constrainResolution_)
)
{ {
if (this.trackpadTimeoutId_) { if (this.trackpadTimeoutId_) {
clearTimeout(this.trackpadTimeoutId_); clearTimeout(this.trackpadTimeoutId_);