You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Zoom in doesn't zoom into the selected block #65884
I think setting a transform-origin in the zoom out CSS transform and calculating a variable on the scaling animation that checks for the current scroll offset and calculating the central point could work well. It would need to work for both zoom-in and out.
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?
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.
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.
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 agree. We could also punt to 6.7.1 since it would be great to fix this as soon as possible.
We still have some refactoring to do, but the PR to fix this is ready for initial testing: #66618
Also, while there is a lot of code changed, it's pretty confined to only impacting the transition animation between zoom in/out. I'm fine with this being punted to 6.7.1, but I don't think we should equate PR size to risk. I think the PR risk is on the lower side, especially given it's fixing something that is definitely broken.
I would say it's one of the most important metrics we have to consider. The more code changes the more surface area for potential unexpected knock on effects. This happens a lot and it's very difficult to predict - for example I've witnessed it several times already during RC.
If this were at RC1 or even RC2 we'd have time for public testing to help catch any other problems. But we're looking for this to be included in a silent RC4 (which ideally shouldn't even be happening) which will be subject to no public testing period.
As a result the threshold for inclusion must necessarily be extremely high.
Release leads definitely appreciate all the work going on here and will look forward to including in 6.7.1 🙇♂
Activity
jeryj commentedon Oct 4, 2024
I think setting a
transform-originin the zoom out CSS transform and calculating a variable on the scaling animation that checks for the current scroll offset and calculating the central point could work well. It would need to work for both zoom-in and out.stokesman commentedon Oct 6, 2024
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).
ndiego commentedon Oct 7, 2024
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.
[-]Zoom in doesn't center selected block[/-][+]Zoom in doesn't zoom into the selected block[/+]richtabor commentedon Oct 9, 2024
Which is the proposed path forward?
draganescu commentedon Oct 10, 2024
I have tried to get #61465 to work, still not there yet. I think #63390 needs a summary of where it's at.
ndiego commentedon Oct 14, 2024
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?
colorful-tones commentedon Oct 14, 2024
Yes 👍
getdave commentedon Oct 14, 2024
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?
2 remaining items
ndiego commentedon Oct 29, 2024
How are we looking on this @jeryj @ajlende? Do we think a fix is achievable for 6.7?
jeryj commentedon Oct 29, 2024
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 🤞🏻
jeryj commentedon Oct 31, 2024
Not ready for review, but here's a PR to watch on maintaining scroll position when toggling between zoom levels. #66618
getdave commentedon Nov 4, 2024
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.
ndiego commentedon Nov 4, 2024
I agree. We could also punt to 6.7.1 since it would be great to fix this as soon as possible.
annezazu commentedon Nov 5, 2024
Agreed once more. Thanks for raising this.
jeryj commentedon Nov 6, 2024
We still have some refactoring to do, but the PR to fix this is ready for initial testing: #66618
Also, while there is a lot of code changed, it's pretty confined to only impacting the transition animation between zoom in/out. I'm fine with this being punted to 6.7.1, but I don't think we should equate PR size to risk. I think the PR risk is on the lower side, especially given it's fixing something that is definitely broken.
getdave commentedon Nov 7, 2024
I would say it's one of the most important metrics we have to consider. The more code changes the more surface area for potential unexpected knock on effects. This happens a lot and it's very difficult to predict - for example I've witnessed it several times already during RC.
If this were at RC1 or even RC2 we'd have time for public testing to help catch any other problems. But we're looking for this to be included in a silent RC4 (which ideally shouldn't even be happening) which will be subject to no public testing period.
As a result the threshold for inclusion must necessarily be extremely high.
Release leads definitely appreciate all the work going on here and will look forward to including in 6.7.1 🙇♂