Skip to content

Commit

Permalink
fix(adb): may skip item in limited sale
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Jun 20, 2021
1 parent 71e9e06 commit a79804d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions auto_derby/clients/adb.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def drag(
read_timeout_s=10 + duration,
)
assert not res, res
time.sleep(0.5)
time.sleep(duration_ms / 1e3 + 0.5)

def wheel(self, point: Tuple[int, int], delta: int) -> None:
self.drag(point, dx=0, dy=round(delta * self.height * 0.05), duration=0.2)
self.drag(point, dx=0, dy=round(delta * self.height * 0.02), duration=0.2)

0 comments on commit a79804d

Please sign in to comment.