mirror of https://github.com/KDE/kasts.git
Avoid overflow on slider bar on very long podcasts
This commit is contained in:
parent
bd46d33863
commit
080669c283
|
@ -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 {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue