mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Opt: Enlarge threshold when loading support list for faster
This commit is contained in:
parent
610df2af6d
commit
106455a148
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user