mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: clicking a selected element collapses multi-selection
This commit is contained in:
@@ -638,14 +638,14 @@ export function useElementInteraction({
|
||||
trackId: track.id,
|
||||
elementId: element.id,
|
||||
});
|
||||
if (!alreadySelected) {
|
||||
if (!alreadySelected || selectedElements.length > 1) {
|
||||
selectElement({ trackId: track.id, elementId: element.id });
|
||||
return;
|
||||
}
|
||||
|
||||
editor.selection.clearKeyframeSelection();
|
||||
},
|
||||
[editor.selection, isElementSelected, selectElement],
|
||||
[editor.selection, isElementSelected, selectElement, selectedElements],
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user