Repository navigation
Conversation
|
Size Change: +820 B (+0.01%) Total Size: 8.76 MB
ℹ️ View Unchanged
|
5679c7f to
567971b
Compare
|
It would be nice if the diff is minimized by avoiding file moves to make it easier to review and see what's changed. Or is that not possible? |
|
It’s totally possible to avoid file moves. They are done atomically so leaving the first couple commits out of the diff shows what actually changed. To me, it seems past time the |
t-hamano
left a comment
There was a problem hiding this comment.
Thanks for working on this!
Adds a preference for the feature in case it has potential for being annoying to some
I expect this will be a behavior that most users will appreciate, and that no one will want to intentionally opt out of it. What do you think? How about enabling this feature by default and providing a way for users to opt out if we have negative feedback?
I tend to agree it’d be fine to enable by default. While I generally agree with avoiding extraneous options, I do think this feature can be annoying, so I like the idea of preference. I wouldn’t say it needs to be via the dedicated button in the splitter bar though. The main way I find this annoying is in scrolling upward. If starting at the end of the canvas it shrinks the pane. It seems easy enough to wheel to the end without unintentionally adjusting the split, but when you start to go back up it’s going to shrink it. I suppose there may be some way to make the logic smarter around that – like if you got to the end without causing it to adjust then don’t adjust it as you head back up. |
|
|
Hm, can we try to enable it without an option first and see what people say? It's always easy to add an option later but not to take it away. Ideally it's very smooth and doesn't immediately active on pull of a few pixels, but sort of animates upwards to show people what would happen when you scroll out of bounds more. Sort of like a reverse pull to refresh. :) |
Move meta boxes pane component to its own folder Move meta box initialization hook to hooks folder Add automated adjustment of split view at scroll boundaries Add button to toggle auto-resizing Add preference for auto-resizing; set defaults Make auto-resizing work when pointer is over block popover Revise auto-resize preference toggle button; try magnet icon Keep auto-resize engaged until pointer moves or bounds reached Lessen jank when wheeling upward over the canvas Avoids scrolling the canvas upward while resizing. Requires switch- ing to a non-passive listener. Rename and comment in interest of better poetry Style to improve alignments in between meta box header and content Restore meta box initialization hook to original location Move meta boxes main component inline with layout
567971b to
6850f82
Compare
|
Pardon the delay but now I've updated to remove any new/moved files and removed the preference and button to toggle the feature.
The idea to add the preference doesn't come from a concern about the activation when scrolling out of bounds or to the end because it doesn't trigger too easily. Instead it's about scrolling up from the end when split has been set as somewhere in the middle and is desired to stay there. Regardless, the preference is now removed so we can see. |
|
Flaky tests detected in 6850f82. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/23263564139
|
|
Thanks for working on this! I noticed something when I tested it again. If I scroll while keeping the mouse position completely fixed, it may get stuck midway through. Please watch the video below. b2de93678551f9ff3b0213e9abc4483d.mp4 |
|
RC1 is today so this is probably too late to land in 7.0 now? I welcome other opinions 🙂 |
|
I feel that a few more tests are needed. Perhaps we can ship this PR alongside the fully iframed post editor in 7.1? |
Thank you for testing and raising this. I'm aware of it. As best I understand, browsers have some sort wheeling session logic where |
|
Please note that in the upcoming 7.1 release, the post editor will be fully iframed. Based on user feedback, let's consider whether we should proceed with this for the 7.2 release. |
+1 Please proceed with this for 7.2. Right now, the post editor is a nightmare to move between the YoastSEO block and the post editor. My workflow has been destroyed since this bug/behavior was introduced in 6.8.1, and now with 7.1 there won't be a workaround anymore. Make it a separate plugin, a mu-plugin, whatever it is needed if WordPress devs won't let you included it in core, but please help us poor users who write blogs every single day and instead of focusing on writing, we have to drag that metabox up and down 100 times to finish a blog post. Thank you! |
In case it helps, instead of dragging, clicking the panel header toggles it. Click anywhere except the center resize bar. |
# Conflicts: # packages/edit-post/src/components/layout/index.jsx # packages/edit-post/src/components/layout/style.scss
🤖 PR meta 🤖🎉 PropsUnlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @GH-User865. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. 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. Updated as activity occurs, without notifying anyone named here. Add the 📦 Bundle sizeSize Change: +910 B (+0.01%) Total Size: 8.26 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
|
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unresolved accessibility, browser zoom, and forwarded scrolling regressions need correction.
Review effort: Balanced
Findings: 5
Open (5)
Honor canceled resize events before scrolling the canvas · New Restore default isOpen coercion for toggle accessibility · New Prevent aria-valuenow from becoming NaN for auto height · New Ignore Ctrl+wheel resizing and preserve modifiers · New Refresh aria-valuenow when pane constraints change · New
What changed in this PR
Adds wheel-driven resizing to the Post editor’s meta-box split view, improving access to plugin settings described in #69923.
Changes:
- Adjusts pane height using wheel gestures at scroll boundaries.
- Forwards popover wheel events to the canvas.
- Updates scrollbar alignment and resize feedback.
| File | Description |
|---|---|
| packages/edit-post/src/components/layout/style.scss | Aligns scrollbar gutters and highlights automatic resizing. |
| packages/edit-post/src/components/layout/index.jsx | Adds wheel handling and imperative pane sizing. |
| packages/block-editor/src/components/block-popover/use-popover-scroll.js | Forwards wheel events for split-view resizing. |
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
|
I made some changes with the help of AI and plan to test this PR shortly to see if we can ship it for the 7.2 release. |
The post editor canvas is always iframed, so the meta boxes never share a formatting context with floated block content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| // In case the canvas is not iframe’d. | ||
| .edit-post-layout__metaboxes { | ||
| clear: both; | ||
| } |
There was a problem hiding this comment.
Nit: The post editor is now always iframed, so this hack is no longer needed.
A wheel event without vertical movement fell through to preventDefault over the canvas, blocking horizontal scrolling of wide content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wheeling upward over a partially open pane shrank it while its contents scrolled at the same time. Only the maximized pane checked the scroll position. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The height set by wheel gestures was lost when the pane was toggled or the editor reloaded. It's now persisted once wheeling settles, and only while the pane is open, matching the drag behavior. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
I've tried a few things, but in my environment, the scrolling still isn't completely smooth in some cases. For now, I'd like to keep the milestone as 7.2, but if we can't find an effective approach, I'm open to postponing it. |

What?
Makes it possible access the meta boxes with input from mouse wheel or touch pad gestures.
Why?
From feedback mainly found in #69923, the primary complaint with the Post editor’s split view UI is being unable to access the meta boxes with the mouse wheel.
How?
wheelevent listeners on the canvas document and the meta box panewheelevents should adjust the split instead of scrollTesting Instructions
It’s great if you can test with touch pads and mouse wheels or any device that causes
wheelevents.Screenshots or screencast
This is currently outdated because the button and preference to toggle the feature have been removed.
https://github.com/user-attachments/assets/6638985d-3a0e-4737-b231-578445cb6d10