From 0209fcc9bf4a99079b5838ac99452b0db9ba17a6 Mon Sep 17 00:00:00 2001 From: Wirlie Date: Sun, 19 Jun 2016 19:23:46 -0500 Subject: [PATCH] Improve horizontal scrollbars. --- src/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input.c b/src/input.c index 4160cf4a13..729af43de6 100644 --- a/src/input.c +++ b/src/input.c @@ -628,10 +628,10 @@ static void input_scroll_begin(rct_window *w, int widgetIndex, int x, int y) scroll->h_left = min(scroll->h_left + 3, widget_content_width); break; case SCROLL_PART_HSCROLLBAR_LEFT_TROUGH: - scroll->h_left = max(scroll->h_left - widget_content_width, 0); + scroll->h_left = max(scroll->h_left - widget_width, 0); break; case SCROLL_PART_HSCROLLBAR_RIGHT_TROUGH: - scroll->h_left = min(scroll->h_left + widget_content_width, widget_content_width); + scroll->h_left = min(scroll->h_left + widget_width, widget_content_width); break; case SCROLL_PART_VSCROLLBAR_TOP: scroll->v_top = max(scroll->v_top - 3, 0);