Plots: Allow panning a zoomed plot with the keyboard
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- react, typescript
- Domain
- accessibility, desktop
Research direction
Start with panZoomImage.tsx and plotsContainer.tsx, especially the plot-scroller focus behavior and the container’s keydown handler. Reproduce with plot(1:10) in the Plots pane at 200% zoom, then check the existing tests for these components. Done means arrow keys pan a focused zoomed plot and no longer switch plots in that case.
Written by the indexing model from the issue text.
Description
A plot zoomed past Fit can be panned only with the mouse, by dragging or with the scrollbars. There is no way to pan it with the keyboard.
Steps to reproduce
- Run
plot(1:10)in an R console. - In the Plots pane, set the zoom to 200%.
- Click the plot, then press the arrow keys.
Expected: the arrow keys pan the zoomed plot.
Actual: Right and Down switch to the next plot. Left and Up switch to the previous plot. The zoomed plot stays scrolled to the top left.
Cause
- The plot's scroll area (
plot-scrollerinpanZoomImage.tsx) has notabIndex, so it never takes keyboard focus. - Clicking the plot focuses
.plots-container. Itskeydownhandler inplotsContainer.tsxturns every arrow key into previous or next plot.
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 207
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 308
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/positron
-
area: assistant area: ui
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
area: plots area: ui bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: kernels lang: r
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
posit-dev/positron#17575 · 2 comments ·
Maintainers usually reply within 1 day
-
Memory meter counts page cache as used memory under a cgroup limitPossibly taken @jmcphers claimed this 10 days ago. Openarea: workbench bug memory-use support
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/positron#17414 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
area: remote host bug support
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/positron#17249 · 1 comment ·
Maintainers usually reply within 1 day
All issues in posit-dev/positron
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Vessel9817/onion-site-template#512 ·
Maintainers usually reply within 1 day
-
nightly-tests
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BlackBeltTechnology/pi-agent-dashboard#1256 ·
Maintainers usually reply within 1 day
-
approved
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
fritzprix/libr-agent#3266 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
better-auth/better-auth#13101 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day