Skip to content

Commit 2504a6c

Browse files
draganescuclaude
andcommitted
Grid: Move the whole selection when a multi-selection is dragged in a manual grid
A multi-selection drag took the manual grid path, which starts a drag of the pressed block only. The grid's drop layer ignores multi-block drags, so let them follow the pointer and drop through the block flow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent ccaac89 commit 2504a6c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎packages/block-editor/src/components/block-list/use-block-props/use-selected-block-event-handlers.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,11 +369,13 @@ export function useEventHandlers( {
369369

370370
// In a manual placement grid, the grid shows the cells the
371371
// block will land in, so the block stays in place, dimmed,
372-
// instead of following the pointer.
372+
// instead of following the pointer. A multi-selection drag
373+
// can't be placed in cells, so it follows the pointer.
373374
const rootLayout = getBlockAttributes(
374375
getBlockRootClientId( clientId )
375376
)?.layout;
376377
if (
378+
! isMultiSelectionDrag &&
377379
rootLayout?.type === 'grid' &&
378380
rootLayout.isManualPlacement &&
379381
window.__experimentalEnableGridInteractivity

0 commit comments

Comments
 (0)