Repository navigation
Make keyboard zooming in chart viewports center on the mouse position. - #6471
Merged
Merged
Conversation
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.
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.