Update MouseWheelZoom.js
This commit is contained in:
@@ -95,7 +95,7 @@ class MouseWheelZoom extends Interaction {
|
|||||||
options.constrainResolution !== undefined
|
options.constrainResolution !== undefined
|
||||||
? options.constrainResolution
|
? options.constrainResolution
|
||||||
: false;
|
: false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
* @type {import("../events/condition.js").Condition}
|
* @type {import("../events/condition.js").Condition}
|
||||||
@@ -227,7 +227,8 @@ class MouseWheelZoom extends Interaction {
|
|||||||
|
|
||||||
const view = map.getView();
|
const view = map.getView();
|
||||||
if (this.mode_ === Mode.TRACKPAD &&
|
if (this.mode_ === Mode.TRACKPAD &&
|
||||||
!(view.getConstrainResolution() || this.constrainResolution_)) {
|
!(view.getConstrainResolution() || this.constrainResolution_))
|
||||||
|
{
|
||||||
if (this.trackpadTimeoutId_) {
|
if (this.trackpadTimeoutId_) {
|
||||||
clearTimeout(this.trackpadTimeoutId_);
|
clearTimeout(this.trackpadTimeoutId_);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user