From 8935f9a0f983c06e94561451e96a4798cb56372a Mon Sep 17 00:00:00 2001 From: ItsLemmy Date: Sun, 14 Sep 2025 23:42:21 -0400 Subject: [PATCH] NPill: fix broken mouse-wheel control --- Widgets/NPill.qml | 4 ++-- Widgets/NPillHorizontal.qml | 4 +--- Widgets/NPillVertical.qml | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Widgets/NPill.qml b/Widgets/NPill.qml index 3ac13b1..d6f0fac 100644 --- a/Widgets/NPill.qml +++ b/Widgets/NPill.qml @@ -60,7 +60,7 @@ Item { onClicked: root.clicked() onRightClicked: root.rightClicked() onMiddleClicked: root.middleClicked() - onWheel: root.wheel + onWheel: delta => root.wheel(delta) } } @@ -85,7 +85,7 @@ Item { onClicked: root.clicked() onRightClicked: root.rightClicked() onMiddleClicked: root.middleClicked() - onWheel: root.wheel + onWheel: delta => root.wheel(delta) } } } diff --git a/Widgets/NPillHorizontal.qml b/Widgets/NPillHorizontal.qml index 6d5ccff..89888ba 100644 --- a/Widgets/NPillHorizontal.qml +++ b/Widgets/NPillHorizontal.qml @@ -243,9 +243,7 @@ Item { root.middleClicked() } } - onWheel: wheel => { - root.wheel(wheel.angleDelta.y) - } + onWheel: wheel => root.wheel(wheel.angleDelta.y) } function show() { diff --git a/Widgets/NPillVertical.qml b/Widgets/NPillVertical.qml index d718a6b..fb5037a 100644 --- a/Widgets/NPillVertical.qml +++ b/Widgets/NPillVertical.qml @@ -284,9 +284,7 @@ Item { root.middleClicked() } } - onWheel: wheel => { - root.wheel(wheel.angleDelta.y) - } + onWheel: wheel => root.wheel(wheel.angleDelta.y) } function show() {