Skip to content

Make keyboard zooming in chart viewports center on the mouse position. - #6471

Merged
mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:push-kzxknxzumtxv
Dec 1, 2026
Merged

mstange merged 1 commit into
firefox-devtools:mainfrom
mstange:push-kzxknxzumtxv

Conversation

@mstange

@mstange mstange commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Main | Deploy preview

https://share.firefox.dev/3UYTvTM

Previously, zooming with the keyboard always zoomed around the middle of the chart. Now it zooms around the mouse if the mouse is over the chart's inner box, the same as mouse wheel zooming. The viewport tracks the mouse position itself, so this doesn't cause any extra re-renders.

Previously, zooming with the keyboard always zoomed around the middle of
the chart. Now it zooms around the mouse if the mouse is over the chart's
inner box, the same as mouse wheel zooming. The viewport tracks the mouse
position itself, so this doesn't cause any extra re-renders.
@mstange
mstange requested a review from fatadel November 18, 2026 14:58
@codecov

codecov Bot commented Nov 18, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.08%. Comparing base (0e01eeb) to head (46d3c72).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##             main    #6471    +/-   ##
========================================
  Coverage   85.08%   85.08%            
========================================
  Files         364      364            
  Lines       39846    39857    +11     
  Branches    11251    11358   +107     
========================================
+ Hits        33903    33914    +11     
  Misses       5504     5504            
  Partials      439      439            

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fatadel fatadel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, LGTM!

@mstange
mstange added this pull request to the merge queue Nov 30, 2026
Merged via the queue into firefox-devtools:main with commit 30784ed Dec 1, 2026
24 checks passed
@fatadel fatadel mentioned this pull request Dec 1, 2026
fatadel added a commit that referenced this pull request Dec 1, 2026
Changes:

[canova] Add localization guidelines to AGENTS.md (#6487)
[staktrace] Add markers to represent causal flows (#6488)
[zuhairkhalid229] Highlight more languages in the source view (#6475)
[kayaal34] Fix typos in developer docs (#6479)
[fatadel] Remove the search field hint (#6490)
[mstange] Add an interactive mode for profiler-cli (#6400)
[mstange] Make keyboard zooming in chart viewports center on the mouse position. (#6471)
[fatadel] Bump profiler-cli version to 0.16.0 (#6502)

And special thanks to our localizers:

de: Michael Köhler
el: Jim Spentzos
en-GB: Ian Neal
ia: Melo46
it: Francesco Lodolo
nl: Mark Heijl
ru: berry, Valery Ledovskoy
sv-SE: Andreas Pettersson
tr: Grk, Selim Şumlu
zh-TW: Pin-guang Chen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants