Skip to content

Commit

Permalink
Edit post: fix meta box pane’s pointer capture (#68252)
Browse files Browse the repository at this point in the history
Unlinked contributors: remcokalf.

Co-authored-by: stokesman <presstoke@git.wordpress.org>
Co-authored-by: talldan <talldanwp@git.wordpress.org>
Co-authored-by: hanneslsm <hanneslsm@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
  • Loading branch information
5 people authored Dec 24, 2024
1 parent 64265ad commit 182752e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/edit-post/src/components/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ function MetaBoxesMain() {
// the event to end the drag is captured by the target (resize handle)
// whether or not it’s under the pointer.
onPointerDown: ( { pointerId, target } ) => {
target.setPointerCapture( pointerId );
if ( separatorRef.current.parentElement.contains( target ) ) {
target.setPointerCapture( pointerId );
}
},
onResizeStart: ( event, direction, elementRef ) => {
if ( isAutoHeight ) {
Expand Down

1 comment on commit 182752e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected in 182752e.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12476237237
📝 Reported issues:

Please sign in to comment.