chartjs / chartjs/chartjs-plugin-zoom

pinch not active on mobile Android and Ios on line chart

Open
#943 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
623
Forks
331
Avg merge
7h 5m
Merged PRs (30d)
7

Description

the canvas touch-action is not detected by chartjs on iphone (safari) and galaxy s25 (chrome) . It is impossible to zoom , pan .

My config is
`zoom: {
wheel: {
enabled: true,
},
pinch: {
enabled: true,
},
mode: 'xy',
threshold: 2,
sensitivity: 2,
onZoomStart,
},
drag: {
enabled: true,
},`

I override css styles canvas with touch-action:auto but it zooms page and not the line chart.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the supplied zoom and drag configuration on iPhone Safari and Galaxy S25 Chrome, then inspect how the canvas touch-action behavior is handled. Done means pinch zoom and pan affect the line chart on both devices without zooming or panning the page.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.