NPill: fix broken mouse-wheel control
This commit is contained in:
parent
b8b97c46a0
commit
8935f9a0f9
3 changed files with 4 additions and 8 deletions
|
|
@ -60,7 +60,7 @@ Item {
|
||||||
onClicked: root.clicked()
|
onClicked: root.clicked()
|
||||||
onRightClicked: root.rightClicked()
|
onRightClicked: root.rightClicked()
|
||||||
onMiddleClicked: root.middleClicked()
|
onMiddleClicked: root.middleClicked()
|
||||||
onWheel: root.wheel
|
onWheel: delta => root.wheel(delta)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -85,7 +85,7 @@ Item {
|
||||||
onClicked: root.clicked()
|
onClicked: root.clicked()
|
||||||
onRightClicked: root.rightClicked()
|
onRightClicked: root.rightClicked()
|
||||||
onMiddleClicked: root.middleClicked()
|
onMiddleClicked: root.middleClicked()
|
||||||
onWheel: root.wheel
|
onWheel: delta => root.wheel(delta)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -243,9 +243,7 @@ Item {
|
||||||
root.middleClicked()
|
root.middleClicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onWheel: wheel => {
|
onWheel: wheel => root.wheel(wheel.angleDelta.y)
|
||||||
root.wheel(wheel.angleDelta.y)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
|
|
|
||||||
|
|
@ -284,9 +284,7 @@ Item {
|
||||||
root.middleClicked()
|
root.middleClicked()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
onWheel: wheel => {
|
onWheel: wheel => root.wheel(wheel.angleDelta.y)
|
||||||
root.wheel(wheel.angleDelta.y)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function show() {
|
function show() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue