Skip to content

🎥 Make videos programmatically with React

Merge branch 'main' into pr/174

Jonny Burgere0454d9bebc7
diff --cc packages/cli/src/editor/components/TimelineSlider.tsx
index bd133ced9b,ddc6cdd0c0..fc0aa727e4
--- a/packages/cli/src/editor/components/TimelineSlider.tsx
+++ b/packages/cli/src/editor/components/TimelineSlider.tsx
@@@ -33,12 -30,11 +30,12 @@@ export const TimelineSlider: React.FC
}
const left =
- (timelinePosition / videoConfig.durationInFrames) *
- (width - TIMELINE_LEFT_PADDING - TIMELINE_RIGHT_PADDING - 1);
+ (timelinePosition / (videoConfig.durationInFrames - 1)) *
+ (width - TIMELINE_LEFT_PADDING - TIMELINE_RIGHT_PADDING - 1) +
+ TIMELINE_LEFT_PADDING;
return (
- <Container leftAmount={left}>
+ <Container style={{transform: `translateX(${left}px)`}}>
<Line>
<TimelineSliderHandle />
</Line>