Skip to content

Commit

Permalink
add originalEvent on user-initiated scroll zoomend and moveend
Browse files Browse the repository at this point in the history
  • Loading branch information
stepankuzmin authored and jfirebaugh committed Feb 26, 2018
1 parent d25eb3f commit 8bcf174
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/handler/scroll_zoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ class ScrollZoomHandler {
if (!this.isActive()) return;
this._active = false;
this._finishTimeout = setTimeout(() => {
this._map.fire(new Event('zoomend'));
this._map.fire(new Event('moveend'));
this._map.fire(new Event('zoomend', {originalEvent: this._lastWheelEvent}));
this._map.fire(new Event('moveend', {originalEvent: this._lastWheelEvent}));
delete this._targetZoom;
}, 200);
}
Expand Down

0 comments on commit 8bcf174

Please sign in to comment.