From c05365c94961a2a1451670b0a33e66bae5412087 Mon Sep 17 00:00:00 2001 From: quadbyte Date: Sun, 10 Aug 2025 19:12:06 -0400 Subject: [PATCH] NPill: added support for mouse wheel up/down --- Widgets/NPill.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Widgets/NPill.qml b/Widgets/NPill.qml index 9e98abc..9a040f2 100644 --- a/Widgets/NPill.qml +++ b/Widgets/NPill.qml @@ -21,6 +21,7 @@ Item { property var onEntered: function () {} property var onExited: function () {} property var onClicked: function () {} + property var onWheel: function (delta) {} // Internal state property bool showPill: false @@ -204,6 +205,9 @@ Item { onClicked: { root.onClicked() } + onWheel: wheel => { + root.onWheel(wheel.angleDelta.y) + } } function show() {