From 165410789d84e3fec4ab4b3ba40cf11919d6b34c Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Wed, 25 Jun 2025 14:55:51 -0700 Subject: [PATCH] no d --- system/ui/lib/scroll_panel.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/ui/lib/scroll_panel.py b/system/ui/lib/scroll_panel.py index e2a741be7e..1ecb05f255 100644 --- a/system/ui/lib/scroll_panel.py +++ b/system/ui/lib/scroll_panel.py @@ -31,7 +31,6 @@ class GuiScrollPanel: self._velocity_y = 0.0 # Velocity for inertia self._is_dragging: bool = False self._bounce_offset: float = 0.0 - self._last_frame_time = rl.get_time() self._velocity_history: list[float] = [] self._last_drag_time: float = 0.0 self._content_rect: rl.Rectangle | None = None @@ -44,8 +43,7 @@ class GuiScrollPanel: # Calculate time delta current_time = rl.get_time() - delta_time = current_time - self._last_frame_time - self._last_frame_time = current_time + delta_time = rl.get_frame_time() # Prevent large jumps delta_time = min(delta_time, 0.05)