Skip to content

Commit

Permalink
fix map Cannot scroll when update seamlessZoom (#2323)
Browse files Browse the repository at this point in the history
  • Loading branch information
deyihu authored May 10, 2024
1 parent 2a4ab20 commit 8b10f8d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/map/handler/Map.ScrollWheelZoom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ class MapScrollWheelZoomHandler extends Handler {
if (evt.shiftKey && value) value = value / 4;

this._lastWheelEvent = evt;
//is undefined ,the _interval will delete it
if (isNil(this._delta)) {
this._delta = 0;
}
this._delta -= value;
if (!this._zooming && this._delta) {
const map = this.target;
Expand Down

0 comments on commit 8b10f8d

Please sign in to comment.