mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-24 18:19:04 +08:00
Fix: If condition in dragging (fixed #2094)
This commit is contained in:
@@ -147,7 +147,7 @@ class Control(Hermit, Minitouch, Scrcpy):
|
|||||||
self.drag_uiautomator2(
|
self.drag_uiautomator2(
|
||||||
p1, p2, segments=segments, shake=shake, point_random=point_random, shake_random=shake_random,
|
p1, p2, segments=segments, shake=shake, point_random=point_random, shake_random=shake_random,
|
||||||
swipe_duration=swipe_duration, shake_duration=shake_duration)
|
swipe_duration=swipe_duration, shake_duration=shake_duration)
|
||||||
if method == 'scrcpy':
|
elif method == 'scrcpy':
|
||||||
self.drag_scrcpy(p1, p2, point_random=point_random)
|
self.drag_scrcpy(p1, p2, point_random=point_random)
|
||||||
else:
|
else:
|
||||||
logger.warning(f'Control method {method} does not support drag well, '
|
logger.warning(f'Control method {method} does not support drag well, '
|
||||||
|
|||||||
Reference in New Issue
Block a user