summaryrefslogtreecommitdiff
path: root/modules/dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dashboard')
-rw-r--r--modules/dashboard/Media.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/dashboard/Media.qml b/modules/dashboard/Media.qml
index d2699a2..9c6ef16 100644
--- a/modules/dashboard/Media.qml
+++ b/modules/dashboard/Media.qml
@@ -289,6 +289,23 @@ Item {
if (active?.canSeek && active?.positionSupported)
active.position = value * active.length;
}
+
+ CustomMouseArea {
+ anchors.fill: parent
+ acceptedButtons: Qt.NoButton
+
+ function onWheel(event: WheelEvent) {
+ const active = Players.active;
+ if (!active?.canSeek || !active?.positionSupported)
+ return;
+
+ event.accepted = true;
+ const delta = event.angleDelta.y > 0 ? 10 : -10; // Time 10 seconds
+ Qt.callLater(() => {
+ active.position = Math.max(0, Math.min(active.length, active.position + delta));
+ });
+ }
+ }
}
Item {