summaryrefslogtreecommitdiff
path: root/apps/web/src/components/editor/timeline-element.tsx
diff options
context:
space:
mode:
authorAnwarul Islam <anwaarulislaam@gmail.com>2025-07-18 03:36:01 +0600
committerAnwarul Islam <anwaarulislaam@gmail.com>2025-07-18 16:43:50 +0600
commit0e1311bfe027c0f5ebbe9a511368dc0fc67172dc (patch)
tree950aa7e764a0deea3655b02c3ddd3961ad7f0324 /apps/web/src/components/editor/timeline-element.tsx
parent0b12fdfa0a770013c24c354cc66a6705b05f3437 (diff)
downloadopencut-0e1311bfe027c0f5ebbe9a511368dc0fc67172dc.tar.gz
feat: ripple editing support sync with latest timeline changes
Diffstat (limited to 'apps/web/src/components/editor/timeline-element.tsx')
-rw-r--r--apps/web/src/components/editor/timeline-element.tsx8
1 files changed, 7 insertions, 1 deletions
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 = () => {