mirror of
https://github.com/webadderallorg/Recordly.git
synced 2026-11-09 15:33:31 +00:00
fix: address remaining ui overhaul review feedback
This commit is contained in:
1 parent
b03753f8e8
commit
f58bf90dfa
1 file changed
+1
-5
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user