diff options
| -rw-r--r-- | bar/Mpris.qml | 3 | ||||
| -rw-r--r-- | config/Bar.qml | 1 |
2 files changed, 3 insertions, 1 deletions
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); } } } diff --git a/config/Bar.qml b/config/Bar.qml index 6ac48d5..248ecf6 100644 --- a/config/Bar.qml +++ b/config/Bar.qml @@ -38,6 +38,7 @@ Singleton { readonly property int moduleRadius: Style.rounding.small readonly property double mediaPausedOpacity: 0.75 + readonly property double mediaScrollScale: 1 / 25 // 5sec readonly property string preferedPlayer: "spotify" readonly property double bgTransparency: 0.25 |
