[SpinBox] Fix logic error in scroll directionality
Scrolling up was decreasing the value, when the reverse should be true.
This commit is contained in:
parent
8e0344a979
commit
90e92a9c67
@ -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…
Reference in New Issue
Block a user