-
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
Block popover: fix scrolling over #68075
base: trunk
Are you sure you want to change the base?
Conversation
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: +45 B (0%) Total Size: 1.84 MB
ℹ️ View Unchanged
|
Flaky tests detected in 7ed899d. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12387804848
|
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.
I’ve tested this in various browsers on MacOS and Linux and it’s working well although Firefox has an issue. This also fixes #63260 from my testing and doesn’t regress #45420.
The issue in Firefox is that for some reason the scrolling halts once the block toolbar is no longer under the pointer. It won’t respond again until either you move the pointer or after a substantial pause without initiating another wheel
event. Maybe this could be a Firefox bug. Although curiously, I couldn’t reproduce it with the in-between inserter.
I stumbled on a workaround for the Firefox issue by making the wheel
event listener not passive. I think it might be worth doing that so this fix is more complete.
The changes makes sense to me so ✅ despite the Firefox issue.
What?
Scrolling the content when the pointer is over the block popover stopped working.
It seems to be caused by:
BlockPopover
component public #61529 (ref no longer passed)Why?
How?
Testing Instructions
Hover over the block toolbar and scroll.
Testing Instructions for Keyboard
Screenshots or screencast