mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2026-10-20 16:12:19 +00:00
fix: add wait for list end after swiping
This commit is contained in:
@@ -143,6 +143,13 @@ class DraggableList:
|
|||||||
if direction == 'right':
|
if direction == 'right':
|
||||||
return 'left'
|
return 'left'
|
||||||
|
|
||||||
|
def wait_bottom_appear(self, main: ModuleBase, skip_first_screenshot=True):
|
||||||
|
"""
|
||||||
|
Returns:
|
||||||
|
bool: If waited
|
||||||
|
"""
|
||||||
|
return False
|
||||||
|
|
||||||
def insight_row(self, row: Keyword, main: ModuleBase, skip_first_screenshot=True) -> bool:
|
def insight_row(self, row: Keyword, main: ModuleBase, skip_first_screenshot=True) -> bool:
|
||||||
"""
|
"""
|
||||||
Args:
|
Args:
|
||||||
@@ -180,8 +187,11 @@ class DraggableList:
|
|||||||
self.drag_page(self.drag_direction, main=main)
|
self.drag_page(self.drag_direction, main=main)
|
||||||
|
|
||||||
# Wait for bottoming out
|
# Wait for bottoming out
|
||||||
main.wait_until_stable(self.search_button, timer=Timer(
|
self.wait_bottom_appear(main, skip_first_screenshot=False)
|
||||||
0, count=0), timeout=Timer(1.5, count=5))
|
main.wait_until_stable(
|
||||||
|
self.search_button, timer=Timer(0, count=0),
|
||||||
|
timeout=Timer(1.5, count=5)
|
||||||
|
)
|
||||||
skip_first_screenshot = True
|
skip_first_screenshot = True
|
||||||
if self.cur_buttons and last_buttons == set(self.cur_buttons):
|
if self.cur_buttons and last_buttons == set(self.cur_buttons):
|
||||||
if bottom_check.reached():
|
if bottom_check.reached():
|
||||||
|
|||||||
Reference in New Issue
Block a user