Avoid overflow on slider bar on very long podcasts

This commit is contained in:
Bart De Vries 2022-01-25 14:46:45 +01:00
parent bd46d33863
commit 080669c283
2 changed files with 6 additions and 6 deletions

View File

@ -219,9 +219,9 @@ Rectangle {
Layout.fillWidth: true Layout.fillWidth: true
padding: 0 padding: 0
from: 0 from: 0
to: AudioManager.duration to: AudioManager.duration / 1000
value: AudioManager.position value: AudioManager.position / 1000
onMoved: AudioManager.seek(value) onMoved: AudioManager.seek(value * 1000)
} }
Item { Item {

View File

@ -241,9 +241,9 @@ Kirigami.Page {
Layout.rightMargin: Kirigami.Units.largeSpacing Layout.rightMargin: Kirigami.Units.largeSpacing
padding: 0 padding: 0
from: 0 from: 0
to: AudioManager.duration to: AudioManager.duration / 1000
value: AudioManager.position value: AudioManager.position / 1000
onMoved: AudioManager.seek(value) onMoved: AudioManager.seek(value * 1000)
} }
RowLayout { RowLayout {
id: controls id: controls