mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-19 00:43:54 +08:00
scroll panel: remove useless return
This commit is contained in:
@@ -172,8 +172,6 @@ class GuiScrollPanel:
|
||||
elif self._offset.y < -(max_scroll_y + MAX_BOUNCE_DISTANCE):
|
||||
self._offset.y = -(max_scroll_y + MAX_BOUNCE_DISTANCE)
|
||||
|
||||
return self._offset
|
||||
|
||||
def is_touch_valid(self):
|
||||
return not self._is_dragging
|
||||
|
||||
|
||||
Reference in New Issue
Block a user