From 63e4fec9c7ad3c44d36a6a9f24fd37ae00bd3519 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Wed, 23 Apr 2025 19:00:46 +0100 Subject: [PATCH] revert --- system/ui/lib/scroll_panel.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/system/ui/lib/scroll_panel.py b/system/ui/lib/scroll_panel.py index bd54f739ab..ca8f427830 100644 --- a/system/ui/lib/scroll_panel.py +++ b/system/ui/lib/scroll_panel.py @@ -28,15 +28,11 @@ class GuiScrollPanel: mouse_pos = rl.get_mouse_position() # Handle dragging logic - if rl.check_collision_point_rec(mouse_pos, bounds) and rl.is_mouse_button_pressed( - rl.MouseButton.MOUSE_BUTTON_LEFT - ): + if rl.check_collision_point_rec(mouse_pos, bounds) and rl.is_mouse_button_pressed(rl.MouseButton.MOUSE_BUTTON_LEFT): if self._scroll_state == ScrollState.IDLE: self._scroll_state = ScrollState.DRAGGING_CONTENT if self._show_vertical_scroll_bar: - scrollbar_width = rl.gui_get_style( - rl.GuiControl.LISTVIEW, rl.GuiListViewProperty.SCROLLBAR_WIDTH - ) + scrollbar_width = rl.gui_get_style(rl.GuiControl.LISTVIEW, rl.GuiListViewProperty.SCROLLBAR_WIDTH) scrollbar_x = bounds.x + bounds.width - scrollbar_width if mouse_pos.x >= scrollbar_x: self._scroll_state = ScrollState.DRAGGING_SCROLLBAR