From 4003ee7c700e63ac05bcdd00135d170af32ff7b8 Mon Sep 17 00:00:00 2001 From: Dydzio Date: Sun, 9 Mar 2025 11:04:20 +0100 Subject: [PATCH] Change scroll direction for horizontal slider (matches HD mod) --- client/widgets/Scrollable.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client/widgets/Scrollable.cpp b/client/widgets/Scrollable.cpp index 89ef5f4d6..b94623036 100644 --- a/client/widgets/Scrollable.cpp +++ b/client/widgets/Scrollable.cpp @@ -27,10 +27,7 @@ void Scrollable::gesture(bool on, const Point & initialPosition, const Point & f void Scrollable::wheelScrolled(int distance) { - if (orientation == Orientation::HORIZONTAL) - scrollBy(distance * scrollStep); - else - scrollBy(-distance * scrollStep); + scrollBy(-distance * scrollStep); } void Scrollable::gesturePanning(const Point & initialPosition, const Point & currentPosition, const Point & lastUpdateDistance)