From a325610d26743da8179ec25808343aa6573ae1de Mon Sep 17 00:00:00 2001 From: jinsheng Date: Tue, 12 Nov 2024 14:29:22 +0800 Subject: [PATCH] fixbug:and_controller swipe --- scripts/and_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/and_controller.py b/scripts/and_controller.py index 2cde0bb..1fee42c 100644 --- a/scripts/and_controller.py +++ b/scripts/and_controller.py @@ -175,6 +175,6 @@ def swipe(self, x, y, direction, dist="medium", quick=False): def swipe_precise(self, start, end, duration=400): start_x, start_y = start end_x, end_y = end - adb_command = f"adb -s {self.device} shell input swipe {start_x} {start_x} {end_x} {end_y} {duration}" + adb_command = f"adb -s {self.device} shell input swipe {start_x} {start_y} {end_x} {end_y} {duration}" ret = execute_adb(adb_command) return ret