chartjs / chartjs/chartjs-plugin-zoom
Pan with right mouse instead of modifier key
- Dominant language
- JavaScript
- Stars
- 623
- Forks
- 331
- Avg merge
- 7h 5m
- Merged PRs (30d)
- 7
Description
Setting a plot using the "Fetch Data" example. The selection of the data also performs the zoom into the fetched data and sets the max zoom-in, although user can still zoom out with the mousewheel and pan with "ctrl"+left-click. While "zoomed out", rather than force a modifier+left-click mouse for dragging/panning, is there a method to allow the right-click for dragging/panning? Right-click dragging is common in lots of other apps.
BDR
Contributor guide
Research direction
Start with the Fetch Data example and trace the existing modifier+left-click pan interaction in the plugin. Determine where mouse-button and modifier handling are defined, then verify that right-button dragging pans without breaking zooming or existing left-button behavior. Done means the requested interaction is supported and covered by the relevant tests or example behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100