Skip to content

Commit

Permalink
fix: trigger onZoomStart from pinchStart (#810)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZaLiTHkA authored Nov 14, 2024
1 parent c8a488d commit 0b79870
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

0 comments on commit 0b79870

Please sign in to comment.