Skip to content

Commit

Permalink
Check for filterNextClick in evaluating isZoomingOrPanning
Browse files Browse the repository at this point in the history
This revises the logic from chartjs#823 to account for changes in chartjs#891.
  • Loading branch information
joshkel committed Jan 28, 2025
1 parent cf08c6a commit c4f6554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,5 @@ export function isZoomedOrPanned(chart: Chart) {

export function isZoomingOrPanning(chart: Chart) {
const state = getState(chart)
return state.panning || state.dragging
return state.panning || state.dragging || state.filterNextClick
}

0 comments on commit c4f6554

Please sign in to comment.