Skip to content

Commit

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

Co-authored-by: stokesman <[email protected]>
Co-authored-by: talldan <[email protected]>
Co-authored-by: hanneslsm <[email protected]>
Co-authored-by: ellatrix <[email protected]>
  • 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

0 comments on commit 182752e

Please sign in to comment.