Browse Source

Change scroll direction for horizontal slider (matches HD mod)

Dydzio 7 months ago
parent
commit
4003ee7c70
1 changed files with 1 additions and 4 deletions
  1. 1 4
      client/widgets/Scrollable.cpp

+ 1 - 4
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)