From 63a803b48088b6931238b958fdb357ce8242d1e2 Mon Sep 17 00:00:00 2001 From: David Redondo Date: Thu, 28 Jan 2021 16:40:03 +0100 Subject: [PATCH] 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. --- src/declarativeimports/plasmacomponents3/SpinBox.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/declarativeimports/plasmacomponents3/SpinBox.qml b/src/declarativeimports/plasmacomponents3/SpinBox.qml index 2ef126229..212bfb706 100644 --- a/src/declarativeimports/plasmacomponents3/SpinBox.qml +++ b/src/declarativeimports/plasmacomponents3/SpinBox.qml @@ -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() } }