feat(02-01): wire slider to reflect current position

Update seek slider inputs in both popup and modal versions to use
currentPositionMs state for value and durationMs for max range.
Slider now reflects live playback position and updates automatically
during playback via polling useEffect.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Nuwan 2026-01-13 23:39:54 +05:30
parent 209cefcf22
commit 491c0a68e0
1 changed files with 4 additions and 4 deletions

View File

@ -267,8 +267,8 @@ const JKSessionBackingTrackPlayer = ({
<input
type="range"
min="0"
max="100"
value="0"
max={durationMs || 100}
value={currentPositionMs}
onChange={handleSeek}
style={{ flex: 1 }}
disabled={!backingTrack}
@ -362,8 +362,8 @@ const JKSessionBackingTrackPlayer = ({
<input
type="range"
min="0"
max="100"
value="0"
max={durationMs || 100}
value={currentPositionMs}
onChange={handleSeek}
style={{ flex: 1 }}
disabled={!backingTrack}