Skip to content

Commit 02c8436

Browse files
committed
fix: slider start time issue
1 parent de7db0a commit 02c8436

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/Slider.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ function Slider({
3535
])}
3636
minimumTrackTintColor={tintColor}
3737
renderMinimumTrackComponent={() => (
38-
<ProgressBar value={playbackTime / thumbs[1]} tintColor={tintColor} />
38+
<ProgressBar
39+
value={(playbackTime - thumbs[0]) / (thumbs[1] - thumbs[0])}
40+
tintColor={tintColor}
41+
/>
3942
)}
4043
onSlidingComplete={onSlidingComplete}
4144
renderThumbComponent={() => (

0 commit comments

Comments
 (0)