Revert "[SpinBox] Fix logic error in scroll directionality"

This reverts commit 90e92a9c67.
The commit caused what it claimed to fix. Also compare with the
desktop style which increases with positive delta.
This commit is contained in:
David Redondo 2021-01-28 16:40:03 +01:00
parent a5aca68269
commit 63a803b480

View File

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