소스 검색

Change scroll direction for horizontal slider (matches HD mod)

Dydzio 7 달 전
부모
커밋
4003ee7c70
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  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)