From bd99f5c05020f81c0ef0b1c7ef53112febcbfb68 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 16 Jul 2025 16:28:34 +0800 Subject: mpris: configurable seek scalew mpris: set mouse to pointer on hover --- bar/Mpris.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bar') diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 062b89c..b2726a3 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -76,6 +76,7 @@ Item { MouseArea { anchors.fill: parent acceptedButtons: Qt.MiddleButton | Qt.RightButton | Qt.LeftButton + cursorShape: Qt.PointingHandCursor onClicked: mouse => { if (mouse.button === Qt.MiddleButton) root.activePlayer?.togglePlaying(); @@ -83,7 +84,7 @@ Item { root.activePlayer?.next(); } onWheel: mouse => { - root.activePlayer?.seek(-mouse.angleDelta.y / 25); + root.activePlayer?.seek(-mouse.angleDelta.y * Bar.mediaScrollScale); } } } -- cgit v1.2.3