-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Zoom in doesn't zoom into the selected block #65884
Comments
I think setting a |
It seems like this is what #61465 is meant to solve. It seems overkill to actually center the block because that’s adjusting the scroll position instead of maintaining it. Also, it can’t work for blocks that are near the end of the canvas unless spacing is added to the end of the canvas to make enough overflow/scrolling range to center the block. Not that it would have to work for such blocks. I’ll mention as well that #63390 maintains scroll position for free (i.e. without code managing it). |
I can confirm this is occurring in 6.7 Beta 1, so I am adding it to the project board. It would be great to come up with a solution before the release. |
Since RC1 is occurring later today and there is no current solution, I think we should punt this to 6.7.1 or 6.8. Thoughts @colorful-tones @getdave @kevin940726? |
Yes 👍 |
I would love this to be solved for 6.7. Contributors have been heavily focused on the scaling bugs this week, but with that rounding out, may be able to pivot to solve this as a related issue. The "zooming in" experience was introduced during this cycle so it seems valid to pursue a fix through the RC. Can we reassess as we move through RC? |
While not part of the release squad, I agree with Dave: the Zoom in/out experience is also the most prominent feature in the upcoming 6.7 release, so delivering an experience as polished as possible is even more critical. |
Sounds good! |
I think we can. We have a POC route, and are working to apply it to Gutenberg. I hope we'll have a PR up for review this week 🤞🏻 |
Not ready for review, but here's a PR to watch on maintaining scroll position when toggling between zoom levels. #66618 |
Given that there is a lot of code in the proposed PR and we are now at RC3 (tomorrow) I'm not feeling very confident about a fix landing in 6.7. It doesn't allow for much time for any knock on effects to be observed/resolved before the final release next week (12th November). I'll test out the PR now, but it might be that we have to punt this to 6.8. Appreciate a confidence check from @colorful-tones @ndiego @kevin940726. Also cc'ing @annezazu and @richtabor who have been heavily involved in Zoom Out Design work and/or triage. |
I agree. We could also punt to 6.7.1 since it would be great to fix this as soon as possible. |
Agreed once more. Thanks for raising this. |
Description
When zooming in to the canvas via double click or enter keypress on a block, it doesn't zoom to the selected block location.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2024-10-04.at.2.07.29.PM.mov
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
The text was updated successfully, but these errors were encountered: