Skip to content

Commit

Permalink
fix(adb): increase min swipe duration
Browse files Browse the repository at this point in the history
fix #71
  • Loading branch information
NateScarlet committed Jun 21, 2021
1 parent f822190 commit 069700f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_derby/clients/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def drag(
x1, y1 = point
x2, y2 = x1 + dx, y1 + dy
duration_ms = int(duration * 1e3)
duration_ms = max(100, duration_ms) # drag not work if too fast
duration_ms = max(200, duration_ms) # drag not work if too fast
command = f"input swipe {x1} {y1} {x2} {y2} {duration_ms}"
LOGGER.debug("drag: %s", command)
res = self.device.shell(
Expand Down

0 comments on commit 069700f

Please sign in to comment.