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

This commit is contained in:
Rbanh committed 2026-02-19 23:33:23 -05:00
1 parent 0c5c1040cd
commit 77f63a6f80
1 file changed
+2 -1
+2 -1
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({