summaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorMaze <167211895+mazeincoding@users.noreply.github.com>2025-07-22 11:58:34 +0200
committerGitHub <noreply@github.com>2025-07-22 11:58:34 +0200
commit2791992b6bdf786792ea7c80d960221c94358e26 (patch)
treea4522ae99339c5308b27b3a76b27c13fbb9e33f3 /apps/web
parente7b89a4cc0ecbe935fe64ae18dfcb7a6366cb556 (diff)
parent301edd0749ff26550bf31cb290d016cbad8e54c7 (diff)
downloadopencut-2791992b6bdf786792ea7c80d960221c94358e26.tar.gz
Merge pull request #408 from treepo1/feat/select-layer-when-inserted
[FEATURE] Select layer when adding to the Timeline
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/src/stores/timeline-store.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/src/stores/timeline-store.ts b/apps/web/src/stores/timeline-store.ts
index 20e80253..81e135da 100644
--- a/apps/web/src/stores/timeline-store.ts
+++ b/apps/web/src/stores/timeline-store.ts
@@ -549,6 +549,8 @@ export const useTimelineStore = create<TimelineStore>((set, get) => {
: track
)
);
+
+ get().selectElement(trackId, newElement.id);
},
removeElementFromTrack: (trackId, elementId) => {