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 committed Feb 15, 2018
1 parent 38c7250 commit 914bbf3
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 @@ -253,8 +253,8 @@ class ScrollZoomHandler {
this._finishTimeout = setTimeout(() => {
this._map.moving = false;
this._map.zooming = false;
this._map.fire('zoomend');
this._map.fire('moveend');
this._map.fire('zoomend', {originalEvent: this._lastWheelEvent});
this._map.fire('moveend', {originalEvent: this._lastWheelEvent});
delete this._targetZoom;
}, 200);
}
Expand Down

0 comments on commit 914bbf3

Please sign in to comment.