Opt: Enlarge threshold when loading support list for faster

This commit is contained in:
LmeSzinc 2023-08-27 02:15:50 +08:00
parent 610df2af6d
commit 106455a148

View File

@ -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")