summaryrefslogtreecommitdiff
path: root/apps/web/src/hooks/timeline
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-03-02 13:26:40 +0100
committerMaze Winther <mazewinther@gmail.com>2026-03-02 13:26:40 +0100
commitdb50b5214de28b9ffc02d0d80623cde13794c5ef (patch)
tree127fcdaf3b22e010f70f4724bf7494a87c298e80 /apps/web/src/hooks/timeline
parente7dcb586c0408255a0bf788e355fdb6d50d9b923 (diff)
downloadopencut-db50b5214de28b9ffc02d0d80623cde13794c5ef.tar.gz
feat: ripple support for element resize
Diffstat (limited to 'apps/web/src/hooks/timeline')
-rw-r--r--apps/web/src/hooks/timeline/element/use-element-resize.ts6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/web/src/hooks/timeline/element/use-element-resize.ts b/apps/web/src/hooks/timeline/element/use-element-resize.ts
index 0ae17cb6..3f49e798 100644
--- a/apps/web/src/hooks/timeline/element/use-element-resize.ts
+++ b/apps/web/src/hooks/timeline/element/use-element-resize.ts
@@ -40,7 +40,9 @@ export function useTimelineElementResize({
const activeProject = editor.project.getActive();
const isShiftHeldRef = useShiftKey();
const snappingEnabled = useTimelineStore((state) => state.snappingEnabled);
-
+ const rippleEditingEnabled = useTimelineStore(
+ (state) => state.rippleEditingEnabled,
+ );
const [resizing, setResizing] = useState<ResizeState | null>(null);
const [currentTrimStart, setCurrentTrimStart] = useState(element.trimStart);
@@ -354,6 +356,7 @@ export function useTimelineElementResize({
trimEnd: finalTrimEnd,
startTime: startTimeChanged ? finalStartTime : undefined,
duration: durationChanged ? finalDuration : undefined,
+ rippleEnabled: rippleEditingEnabled,
});
}
@@ -366,6 +369,7 @@ export function useTimelineElementResize({
element.id,
onResizeStateChange,
onSnapPointChange,
+ rippleEditingEnabled,
]);
useEffect(() => {