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