mirror of
https://github.com/KDE/kasts.git
synced 2025-01-28 16:19:56 +01:00
Workaround for exact slider handle positioning
This commit is contained in:
parent
ee5820da25
commit
402f8b565e
@ -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 {
|
||||
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user