-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exit zoom out when mode is changed #65975
Conversation
The concept of modes has changed significantly in WordPress 6.7 and the latest Gutenberg. However, the implementation of the |
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: +17 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
Flaky tests detected in 9a8a2dd. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11251484553
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @t-hamano this works great.
This makes sense to me. Thank you 👍 |
Just confirming, this does not interfere with #65702? |
I think it might yes. However, we need to land this for 6.7 and so it's a priority that we merge this. That PR is not ready to merge and so it will have to take responsibility for adding a condition to work around this. I'll drop a line there. |
I just cherry-picked this PR to the wp/6.7 branch to get it included in the next release: ff8bb81 |
Fixes #65901
What?
Disables zoom out mode when editor mode is changed.
Why?
Currently zoom out doesn't work properly when the editor mode is changed.
NOTE: This is a fix specifically for WP 6.7. Whether the zoom out feature should be treated as a "mode" in itself and where to expose this feature is still a topic for discussion in #65856.
How?
Exit zoom out mode via
resetZoomLevel()
when mode is changed.Testing Instructions
Screenshots or screencast
45bc1379fd4289100ce52d8a3fd32dfb.mp4