summaryrefslogtreecommitdiff
path: root/apps/web/src
diff options
context:
space:
mode:
authorThiago Freire <thiago.freire45@gmail.com>2025-07-21 19:59:18 -0300
committerThiago Freire <thiago.freire45@gmail.com>2025-07-21 19:59:18 -0300
commit301edd0749ff26550bf31cb290d016cbad8e54c7 (patch)
tree3fd8547e38d345eee9f26f00b6a564b7e980cbb8 /apps/web/src
parent11b270ffd398ccef82b4105ca0bc87572a208d33 (diff)
downloadopencut-301edd0749ff26550bf31cb290d016cbad8e54c7.tar.gz
feat: automatically select layer when is added to the timeline
Diffstat (limited to 'apps/web/src')
-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 01ad1635..975165f9 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) => {