-
Notifications
You must be signed in to change notification settings - Fork 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
Gutenberg: Make content scrollable again #28149
Conversation
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.
As noted before, I couldn't reproduce this issue in wpcalypso. I tested the new changes and everything still works as expected. The code looks good and since this fixes the issue for you it's good to ship.
I'll ship this for now as it's rather important for us to be able to scroll the content, but I'd still love @jasmussen's opinion, because I couldn't repro the original issue. 🙇 |
So, stepping back a bit, the reason that Why would you do that, you might ask? Because if you are using flexbox to create layouts, you might want a container element that is not the
The downside to using flexbox is usually iPads. On an iPad it has enough screen real estate to view the desktop view for the editor, which uses this flexbox for layout. Which means if you swipe with your finger on the scrollable canvas, that scrolls, cool. But when you drag with the finger on the app bar, you move the Sadly In Calypso, when you scroll to the end of the block library, you start scrolling the content below. This issue is likely to become more prevalent once modals appear, like the keyboard shortcuts sheet. It also fixes the issue with the double scrollbar, which is not present in the core version: In other words, for now we are relying on the benefits of the flex layout, in order to solve the scroll bleed issue, and hoping that a future version of Safari will support the From what I can tell, the Calypso version of Gutenberg rejiggers this layout to not use flexbox for the editor bar. I'm not sure why, but if this behavior is to be kept, it's worth looking into other ways to solve the scroll bleed issue. |
@jasmussen Thank you so much for the detailed explanation! |
Changes proposed in this Pull Request
overscroll-behavior-y: none
rule introduced in Fix overscroll issues locking scroll up on long pages. WordPress/gutenberg#10227 that prevents scrolling the editor content altogether.Testing instructions
Fixes issue reported in #28095 (comment)