aboutsummaryrefslogtreecommitdiffstats
path: root/desktop/island/StatusPill.qml
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/island/StatusPill.qml')
-rw-r--r--desktop/island/StatusPill.qml17
1 files changed, 11 insertions, 6 deletions
diff --git a/desktop/island/StatusPill.qml b/desktop/island/StatusPill.qml
index 344117c..5ab8f95 100644
--- a/desktop/island/StatusPill.qml
+++ b/desktop/island/StatusPill.qml
@@ -93,13 +93,18 @@ Capsule {
// One switch per wheel notch (120). A touchpad sends many small
// deltas, and switching on each made the count erratic.
- WheelHandler {
+ // A MouseArea, not a WheelHandler: the handler never fired here,
+ // while MouseArea.onWheel is what SoundPage already relies on.
+ MouseArea {
+ anchors.fill: parent
property real acc: 0
- onWheel: event => {
- acc += event.angleDelta.y;
- if (Math.abs(acc) < 120) return;
- Keyboard.cycle(acc > 0 ? "prev" : "next");
- acc = 0;
+ onWheel: wheel => {
+ acc += wheel.angleDelta.y;
+ if (Math.abs(acc) >= 120) {
+ Keyboard.cycle(acc > 0 ? "prev" : "next");
+ acc = 0;
+ }
+ wheel.accepted = true;
}
}
}