Skip to content

Commit

Permalink
GLUI: ScrollView: properly enable/disable hscrollbar during drag scroll
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Westerfeld <[email protected]>
  • Loading branch information
swesterfeld committed Oct 5, 2023
1 parent a53fa93 commit 6ba28ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glui/smscrollview.hh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public:
double new_pos = (8 - x) / (scroll_widget->width() + 16);
new_pos = std::clamp (new_pos, 0.0, 1 - new_page_size);
h_scroll_bar->set_pos (new_pos);
on_scroll_bar_changed (0);
on_widget_size_changed();
}
};

Expand Down

0 comments on commit 6ba28ef

Please sign in to comment.