Skip to content

Commit f591fed

Browse files
committed
Website updates
1 parent 63e7513 commit f591fed

11 files changed

Lines changed: 16 additions & 16 deletions

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/offscreen-canvas.worker.worker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/tiled-layer-rendering-in-offscreen-canvas.worker.worker.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/tiled-layer-rendering-in-offscreen-canvas.worker.worker.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/interaction/MouseWheelZoom.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/interaction/MouseWheelZoom.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,12 @@ class MouseWheelZoom extends Interaction {
215215
return;
216216
}
217217
const view = map.getView();
218+
const direction = this.lastDelta_ ? (this.lastDelta_ > 0 ? 1 : -1) : 0;
218219
view.endInteraction(
219-
undefined,
220-
this.lastDelta_ ? (this.lastDelta_ > 0 ? 1 : -1) : 0,
220+
this.constrainResolution_ || view.getConstrainResolution()
221+
? 100
222+
: undefined,
223+
direction,
221224
this.lastAnchor_ ? map.getCoordinateFromPixel(this.lastAnchor_) : null,
222225
);
223226
}
@@ -284,10 +287,7 @@ class MouseWheelZoom extends Interaction {
284287
}
285288

286289
const view = map.getView();
287-
if (
288-
this.mode_ === 'trackpad' &&
289-
!(view.getConstrainResolution() || this.constrainResolution_)
290-
) {
290+
if (this.mode_ === 'trackpad') {
291291
if (this.trackpadTimeoutId_) {
292292
clearTimeout(this.trackpadTimeoutId_);
293293
} else {

0 commit comments

Comments
 (0)