don't register click when scrolling

This commit is contained in:
nayan
2025-07-21 16:54:39 -04:00
parent 7b0376fdf6
commit 09e392afad
+1 -1
View File
@@ -225,7 +225,7 @@ class SettingsLayout(Widget):
# Check navigation buttons
for panel_type, panel_info in self._panels.items():
if rl.check_collision_point_rec(mouse_pos, panel_info.button_rect):
if rl.check_collision_point_rec(mouse_pos, panel_info.button_rect) and self._sidebar_scroller.scroll_panel.is_touch_valid():
self.set_current_panel(panel_type)
return True