Fix: Keep the progress indicator visible after pausing or scrubbing a voice message. (#1969)

This commit is contained in:
Nicolas Mauri
2023-10-27 17:24:22 +02:00
committed by GitHub
parent 0b31446817
commit a32a7c8f2c
12 changed files with 110 additions and 23 deletions
@@ -40,10 +40,6 @@ struct VoiceMessageRoomPlaybackView: View {
}
}
var showWaveformCursor: Bool {
playerState.playbackState == .playing || isDragging
}
var body: some View {
HStack {
HStack {
@@ -61,7 +57,7 @@ struct VoiceMessageRoomPlaybackView: View {
waveformView
.waveformInteraction(isDragging: $isDragging,
progress: playerState.progress,
showCursor: showWaveformCursor,
showCursor: playerState.showProgressIndicator,
onSeek: onSeek)
}
.padding(.leading, 2)