NPill: added support for mouse wheel up/down

This commit is contained in:
quadbyte 2025-08-10 19:12:06 -04:00
parent 4a22910897
commit c05365c949

View file

@ -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() {