Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr committed May 26, 2023
1 parent 222b294 commit 2692811
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions puterbot/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def merge_consecutive_mouse_move_events(events, by_diff_distance=False):


def is_target_event(event, state):
return event.name in ("click", "move")
return event.name == "move"


def get_merged_events(
Expand Down Expand Up @@ -471,7 +471,7 @@ def remove_redundant_mouse_move_events(events):


def is_target_event(event, state):
return event.name == "move"
return event.name in ("move", "click")


def is_same_pos(e0, e1):
Expand Down

0 comments on commit 2692811

Please sign in to comment.