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:
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…
Reference in New Issue
Block a user