diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-01 20:55:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-01 20:55:48 +1000 |
| commit | 91a00d55e530f9dc918d56f952e936c4a6577e79 (patch) | |
| tree | fed2652bb9423604e94c9907b732707edea0eb65 /modules | |
| parent | dashboard/media: add scroll to seek (#528) (diff) | |
| download | caelestia-shell-91a00d55e530f9dc918d56f952e936c4a6577e79.tar.gz caelestia-shell-91a00d55e530f9dc918d56f952e936c4a6577e79.tar.bz2 caelestia-shell-91a00d55e530f9dc918d56f952e936c4a6577e79.zip | |
dashboard/media: slightly improve media seeking
Still kinda buggy, but not as bad
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/dashboard/Media.qml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml index 9c6ef16..5817d3e 100644 --- a/modules/dashboard/Media.qml +++ b/modules/dashboard/Media.qml @@ -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 |