mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-01 03:43:51 +08:00
ui: ensure auto-scroll stops correctly near target (#36686)
ensure auto-scroll stops correctly near target
This commit is contained in:
@@ -88,6 +88,7 @@ class GuiScrollPanel2:
|
||||
# Steady once we are close enough to the target
|
||||
if abs(dist) < 1 and abs(self._velocity) < MIN_VELOCITY:
|
||||
self.set_offset(target)
|
||||
self._velocity = 0.0
|
||||
self._state = ScrollState.STEADY
|
||||
|
||||
elif abs(self._velocity) < MIN_VELOCITY:
|
||||
|
||||
Reference in New Issue
Block a user