fix: 增大滚动距离406px→1200px,避免误判到底
This commit is contained in:
+2
-2
@@ -816,7 +816,7 @@ def tap_all_thumbnails(baseline, max_rounds=300, poll_interval=4, max_wait_per_r
|
||||
pre_rows = full_rows
|
||||
|
||||
# 向下滚动 2 行(约 406 像素,保留 1 行重叠避免漏跳)
|
||||
adb("shell", "input", "swipe", "540", "1820", "540", "1414", "400")
|
||||
adb("shell", "input", "swipe", "540", "1900", "540", "700", "500")
|
||||
time.sleep(1.0)
|
||||
|
||||
post_shot = screenshot("/tmp/_postscroll.png")
|
||||
@@ -832,7 +832,7 @@ def tap_all_thumbnails(baseline, max_rounds=300, poll_interval=4, max_wait_per_r
|
||||
# 手势(实测 26、27 号就因单次误判、提前结束、漏下几百个)。再滚一次确认:
|
||||
# 只有连续两次都没推进才判真到底。
|
||||
time.sleep(2)
|
||||
adb("shell", "input", "swipe", "540", "1820", "540", "1414", "400")
|
||||
adb("shell", "input", "swipe", "540", "1900", "540", "700", "500")
|
||||
time.sleep(1.5)
|
||||
post2_rows = detect_card_rows(screenshot("/tmp/_postscroll2.png"))
|
||||
if _moved(pre_rows, post2_rows):
|
||||
|
||||
Reference in New Issue
Block a user