Skip to content

Commit

Permalink
fix: trigger onZoomStart from pinchStart
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaLiTHkA committed Mar 14, 2024
1 parent bfd207d commit 36fc73e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hammer.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ function handlePinch(chart, state, e) {

function startPinch(chart, state) {
if (state.options.zoom.pinch.enabled) {
call(state.options.zoom.onZoomStart, [{chart}]);
state.scale = 1;
}
}
Expand Down

1 comment on commit 36fc73e

@ZaLiTHkA
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NOTE: it would seem that this same issue was resolved in the original upstream project, along with a wide range of other changes, all together in one great big TS conversion..

Please sign in to comment.