mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 00:28:20 +08:00
Opt: Remove unnecessary use of drags, fallback to swipe+click if drag is a must
This commit is contained in:
@@ -95,8 +95,9 @@ class Adb(Connection):
|
||||
self.adb_shell(['input', 'tap', x, y])
|
||||
|
||||
@retry
|
||||
def swipe_adb(self, fx, fy, tx, ty, duration=0.1):
|
||||
self.adb_shell(['input', 'swipe', fx, fy, tx, ty, duration])
|
||||
def swipe_adb(self, p1, p2, duration=0.1):
|
||||
duration = int(duration * 1000)
|
||||
self.adb_shell(['input', 'swipe', *p1, *p2, duration])
|
||||
|
||||
@retry
|
||||
def app_current_adb(self):
|
||||
|
||||
Reference in New Issue
Block a user