diff options
| author | Thiago Freire <thiago.freire45@gmail.com> | 2025-07-21 19:59:18 -0300 |
|---|---|---|
| committer | Thiago Freire <thiago.freire45@gmail.com> | 2025-07-21 19:59:18 -0300 |
| commit | 301edd0749ff26550bf31cb290d016cbad8e54c7 (patch) | |
| tree | 3fd8547e38d345eee9f26f00b6a564b7e980cbb8 /apps/web | |
| parent | 11b270ffd398ccef82b4105ca0bc87572a208d33 (diff) | |
| download | opencut-301edd0749ff26550bf31cb290d016cbad8e54c7.tar.gz | |
feat: automatically select layer when is added to the timeline
Diffstat (limited to 'apps/web')
| -rw-r--r-- | apps/web/src/stores/timeline-store.ts | 2 |
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) => { |
