-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Grid resizers not working well when resizing an embed block down #63279
Comments
Agree, that seems likely, I seem to remember encountering this before for the editor canvas iframe (found it here - #41153 (comment)). The editor canvas iframe bubbles mouse move events for this purpose: gutenberg/packages/block-editor/src/components/iframe/index.js Lines 76 to 102 in dbc6e11
The One solution could be to add event bubbling to |
Description
When a block containing an iframe, such as a YouTube embed, is placed within a Grid block and set to span multiple columns, trying to resize it down to a smaller size with the handles doesn't always work as expected, especially when resizing over the iframe area itself (dragging the handles over the caption space below works fine).
This is likely because the event listeners responsible for the resizing can't follow events inside the area of the iframe.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
resizers-on-iframe.mp4
Environment info
Latest Gutenberg and also WP 6.6.
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: