From 0e1311bfe027c0f5ebbe9a511368dc0fc67172dc Mon Sep 17 00:00:00 2001 From: Anwarul Islam Date: Fri, 18 Jul 2025 03:36:01 +0600 Subject: feat: ripple editing support sync with latest timeline changes --- apps/web/src/components/editor/timeline-element.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'apps/web/src/components/editor/timeline-element.tsx') diff --git a/apps/web/src/components/editor/timeline-element.tsx b/apps/web/src/components/editor/timeline-element.tsx index 8cccd0e4..bb414a9c 100644 --- a/apps/web/src/components/editor/timeline-element.tsx +++ b/apps/web/src/components/editor/timeline-element.tsx @@ -57,6 +57,7 @@ export function TimelineElement({ updateElementTrim, updateElementDuration, removeElementFromTrack, + removeElementFromTrackWithRipple, dragState, splitElement, splitAndKeepLeft, @@ -64,6 +65,7 @@ export function TimelineElement({ separateAudio, addElementToTrack, replaceElementMedia, + rippleEditingEnabled, } = useTimelineStore(); const { currentTime } = usePlaybackStore(); @@ -213,7 +215,11 @@ export function TimelineElement({ }; const handleElementDeleteContext = () => { - removeElementFromTrack(track.id, element.id); + if (rippleEditingEnabled) { + removeElementFromTrackWithRipple(track.id, element.id); + } else { + removeElementFromTrack(track.id, element.id); + } }; const handleReplaceClip = () => { -- cgit v1.3.1