Workaround for exact slider handle positioning

This commit is contained in:
Bart De Vries 2023-01-01 15:09:10 +01:00
parent ee5820da25
commit 402f8b565e
2 changed files with 2 additions and 0 deletions

View File

@ -238,6 +238,7 @@ Rectangle {
to: AudioManager.duration / 1000
value: AudioManager.position / 1000
onMoved: AudioManager.seek(value * 1000)
handle.implicitWidth: implicitHeight // workaround to make slider handle position itself exactly at the location of the click
}
Item {

View File

@ -39,6 +39,7 @@ Kirigami.Page {
to: AudioManager.duration / 1000
value: AudioManager.position / 1000
onMoved: AudioManager.seek(value * 1000)
handle.implicitWidth: implicitHeight // workaround to make slider handle position itself exactly at the location of the click
}
}