fix(studio): keep the timeline multi-selection through a group edit

setSelectedElementId no longer resets the selection set when re-selecting an element
that is already a member: DOM-to-selection sync echoes fire on every pointer move during
a group drag and were collapsing the set to the grabbed clip.

Also drops the duplicate clearSelectedElementIds action in favor of clearSelection,
which the marquee now uses to clear on an empty drag.
This commit is contained in:
Miguel Angel Simon Sierra
2026-07-09 16:54:34 -04:00
parent 36413da7f6
commit fa3848a33d
3 changed files with 30 additions and 17 deletions
@@ -231,7 +231,7 @@ export function useTimelineMarqueeSelection({
setMarqueeRect(null);
if (!active.started) {
usePlayerStore.getState().setSelection([]);
usePlayerStore.getState().clearSelection();
return true;
}