From 106455a1486d1820203ba7047866a8afff59b32e Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 27 Aug 2023 02:15:50 +0800 Subject: [PATCH] Opt: Enlarge threshold when loading support list for faster --- tasks/combat/support.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/combat/support.py b/tasks/combat/support.py index c844182fa..a97caf287 100644 --- a/tasks/combat/support.py +++ b/tasks/combat/support.py @@ -159,7 +159,10 @@ class CombatSupport(UI): name=COMBAT_SUPPORT_LIST_SCROLL.name) if scroll.appear(main=self): if not scroll.at_bottom(main=self): + # Dropdown to load the entire support list, so large threshold is acceptable + scroll.drag_threshold, backup = 0.2, scroll.drag_threshold scroll.set_bottom(main=self) + scroll.drag_threshold = backup scroll.set_top(main=self) logger.info("Searching support")