[SpinBox] Fix logic error in scroll directionality

Scrolling up was decreasing the value, when the reverse should be true.
This commit is contained in:
Nate Graham 2020-11-13 10:45:54 -07:00
parent 8e0344a979
commit 90e92a9c67

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