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:
parent
209cefcf22
commit
491c0a68e0
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue