Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix: address remaining ui overhaul review feedback

webadderallf58bf90dfabf
diff --git a/src/components/video-editor/types.ts b/src/components/video-editor/types.ts
index 6155c486..026d7916 100644
--- a/src/components/video-editor/types.ts
+++ b/src/components/video-editor/types.ts
@@ -136,10 +136,6 @@ export interface ClipRegion {
muted?: boolean;
}
-export function getClipSourceEndMs(clip: ClipRegion): number {
- return Math.round(Math.max(clip.startMs, clip.endMs));
-}
-
/** Convert clip regions (kept segments) to trim regions (gaps to remove). */
export function clipsToTrims(clips: ClipRegion[], totalDurationMs: number): TrimRegion[] {
if (clips.length === 0) return [];
@@ -151,7 +147,7 @@ export function clipsToTrims(clips: ClipRegion[], totalDurationMs: number): Trim
if (clip.startMs > cursor) {
trims.push({ id: `trim-gap-${trimId++}`, startMs: cursor, endMs: clip.startMs });
}
- cursor = getClipSourceEndMs(clip);
+ cursor = clip.endMs;
}
if (cursor < totalDurationMs) {
trims.push({ id: `trim-gap-${trimId++}`, startMs: cursor, endMs: totalDurationMs });