dashboard/media: slightly improve media seeking
Still kinda buggy, but not as bad
This commit is contained in:
parent
67f676d913
commit
91a00d55e5
1 changed files with 7 additions and 1 deletions
|
|
@ -283,13 +283,19 @@ Item {
|
|||
implicitWidth: controls.implicitWidth * 1.5
|
||||
implicitHeight: Appearance.padding.normal * 3
|
||||
|
||||
value: root.playerProgress
|
||||
onMoved: {
|
||||
const active = Players.active;
|
||||
if (active?.canSeek && active?.positionSupported)
|
||||
active.position = value * active.length;
|
||||
}
|
||||
|
||||
Binding {
|
||||
target: slider
|
||||
property: "value"
|
||||
value: root.playerProgress
|
||||
when: !slider.pressed
|
||||
}
|
||||
|
||||
CustomMouseArea {
|
||||
anchors.fill: parent
|
||||
acceptedButtons: Qt.NoButton
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue