Refine drag behavior: default to single-component move
Some checks are pending
CI / test (push) Waiting to run
Some checks are pending
CI / test (push) Waiting to run
This commit is contained in:
parent
0c5c1040cd
commit
77f63a6f80
@ -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({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user