Revert "[SpinBox] Fix logic error in scroll directionality"
This reverts commit 90e92a9c67fed0720ba21dfddfa7852700d29028. The commit caused what it claimed to fix. Also compare with the desktop style which increases with positive delta.
This commit is contained in:
parent
a5aca68269
commit
63a803b480
@ -60,10 +60,10 @@ T.SpinBox {
|
||||
}
|
||||
onWheel: {
|
||||
if (wheel.angleDelta.y > 0 && control.value <= control.to) {
|
||||
control.value -= control.stepSize
|
||||
control.value += control.stepSize
|
||||
control.valueModified()
|
||||
} else if (wheel.angleDelta.y < 0 && control.value >= control.from) {
|
||||
control.value += control.stepSize
|
||||
control.value -= control.stepSize
|
||||
control.valueModified()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user