Replies: 1 comment
-
I was having the same issue too. I commented in your issue as well. However, I think the issue is in the documentation. I added another comment indicating that in a test case if I include hammerjs, the pan works. If I do not include it, it does not work. See if adding hammerjs (linked in the official docs and my comment has the same link) fixes your issue as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
pepe12311's edit
Edited 3 minutes ago
Hi,
I’m using Chart.js v4.4.3 with chartjs-plugin-zoom and I can’t get the pan feature to work. The zoom (with mouse wheel) works perfectly, but pan doesn’t do anything — even though it’s enabled and configured.
I’ve tested multiple combinations of versions (including plugin v2.0.0, 2.2.0, and latest), used both CDN and local copies, and
tried different browsers and systems.
Here’s a minimal example to reproduce the issue:
No errors are shown in the console, but the onPan callback is never triggered.
Any suggestions on what might be missing or misconfigured?
Thanks in advance!
chartjs-plugin-zoom.html.zip
Beta Was this translation helpful? Give feedback.
All reactions