Skip to content

Commit

Permalink
fix scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
ok-oldking committed Jul 10, 2024
1 parent 7d50a5b commit 9ead6ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/task/FarmWorldBossTask.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ def scroll_down_a_page(self):
if time.time() - start > 20:
raise Exception("scroll to long")
# if count % 10 == 0:
self.click_relative(0.5, 0.5)
self.click_relative(0.5, 0.7)
self.sleep(0.1)
# count += 1
self.scroll_relative(0.7, 0.5, -2)
self.scroll_relative(0.7, 0.7, -2)
self.sleep(0.1)
targets = self.find_feature('target_box', box=target_box, template=source_template)
if targets:
Expand Down

0 comments on commit 9ead6ff

Please sign in to comment.