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
padding: 0
from: 0
to: AudioManager.duration
value: AudioManager.position
onMoved: AudioManager.seek(value)
to: AudioManager.duration / 1000
value: AudioManager.position / 1000
onMoved: AudioManager.seek(value * 1000)
}
Item {

View File

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