Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
fix(limited-sale): handle inertial scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Jul 19, 2022
1 parent 59d450f commit 7650232
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions auto_derby/limited_sale.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ def buy_first_n(n: int) -> None:
rp.vector4((14, 500, 6, 10), 540),
duration=0.2,
)
# prevent inertial scrolling
app.device.tap(
rp.vector4((14, 500, 6, 10), 540),
)

action.wait_tap_image(templates.CLOSE_NOW_BUTTON)
action.wait_tap_image(templates.GREEN_OK_BUTTON)
Expand Down

0 comments on commit 7650232

Please sign in to comment.