Refine drag behavior: default to single-component move
Some checks are pending
CI / test (push) Waiting to run

This commit is contained in:
Rbanh 2026-02-19 23:33:23 -05:00
parent 0c5c1040cd
commit 77f63a6f80

View File

@ -739,7 +739,8 @@ export function CanvasArea({ store: providedStore }: CanvasAreaProps) {
} }
const isAlreadySelected = selectedSet.has(ref); const isAlreadySelected = selectedSet.has(ref);
const dragCandidates = isAlreadySelected && selectedRefs.length > 1 ? selectedRefs : [ref]; const explicitGroupDrag = event.altKey;
const dragCandidates = isAlreadySelected && selectedRefs.length > 1 && explicitGroupDrag ? selectedRefs : [ref];
if (!isAlreadySelected || selectedRefs.length !== dragCandidates.length) { if (!isAlreadySelected || selectedRefs.length !== dragCandidates.length) {
store.actions.setSelection({ store.actions.setSelection({