dashboard/media: slightly improve media seeking

Still kinda buggy, but not as bad
This commit is contained in:
2 * r + 2 * t 2025-09-01 20:55:48 +10:00
parent 67f676d913
commit 91a00d55e5

View file

@ -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