NPill: added support for mouse wheel up/down
This commit is contained in:
parent
4a22910897
commit
c05365c949
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue