Open ajlende opened 2 days ago
Size Change: +369 B (+0.02%)
Total Size: 1.82 MB
Filename | Size | Change |
---|---|---|
build/block-editor/content-rtl.css |
4.49 kB | +70 B (+1.58%) |
build/block-editor/content.css |
4.48 kB | +75 B (+1.7%) |
build/block-editor/index.min.js |
255 kB | +224 B (+0.09%) |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot
label.
If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
Co-authored-by: jeryj <jeryj@git.wordpress.org>
Co-authored-by: ajlende <ajlende@git.wordpress.org>
Co-authored-by: stokesman <presstoke@git.wordpress.org>
Co-authored-by: ndiego <ndiego@git.wordpress.org>
Co-authored-by: richtabor <richtabor@git.wordpress.org>
Co-authored-by: draganescu <andraganescu@git.wordpress.org>
Co-authored-by: colorful-tones <colorful-tones@git.wordpress.org>
Co-authored-by: getdave <get_dave@git.wordpress.org>
Co-authored-by: priethor <priethor@git.wordpress.org>
Co-authored-by: annezazu <annezazu@git.wordpress.org>
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.
Fixes https://github.com/WordPress/gutenberg/issues/65884
Also fixes a minor bug where setting the scroll position was still delayed even when there was no animation due to reduced motion settings.
What?
Maintain the visible content of the editor canvas when zooming in/out.
Why?
It's disorienting to zoom in/out and lose your frame of reference.
How?
When changing scale (zoom in/out):
It will always attempt to scale to the center unless we are at the top of the canvas. In which case, it will scale to keep the top of the canvas visible.
Known bugs
Testing Instructions
Zooming from Top
https://github.com/user-attachments/assets/b42a9307-e134-4a9e-892a-acf75a1c88df
Zooming from below Top
https://github.com/user-attachments/assets/683cb724-6a2c-4e3a-af29-2c2d86ac99f5
Open/close sidebar scaling animations
Try to break it :)
Testing Instructions for Keyboard
Screenshots or screencast
Before
https://github.com/user-attachments/assets/8be0d1cb-c917-4bd9-adef-002b7b5c84fe
After
https://github.com/user-attachments/assets/ca221060-f6c9-4c66-9c70-631c945dc4d2