1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2025-12-16 22:05:12 +00:00

fix: Swipe causing too much click

This commit is contained in:
YoursFunny 2023-11-02 22:56:05 +08:00
parent 080c4c130c
commit 22647a5e36
Signed by: YoursFunny
GPG Key ID: 207EDC3CD5B40F9C

View File

@ -98,6 +98,8 @@ class Cafe(UI):
case 'right':
self.device.swipe_vector(vector_right, box=BOX_CAFE.area, random_range=random_r, padding=5)
self.device.swipe_vector(vector_right, box=BOX_CAFE.area, random_range=random_r, padding=5)
# solve too much swipe causing restart
self.device.click_record_clear()
def _get_reward_num(self):
ocr = Digit(OCR_CAFE)