Skip to content

Commit

Permalink
Introduce consecutive_click_distance like other toolkits do such as g…
Browse files Browse the repository at this point in the history
…tk,qt,imgui.
  • Loading branch information
l-const authored and wash2 committed Oct 16, 2024
1 parent c29b602 commit 4ef88fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mouse/click.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ impl Click {
} else {
None
};

self.position == new_position
self.position.distance(new_position) < 6.0
&& duration
.map(|duration| duration.as_millis() <= 300)
.unwrap_or(false)
Expand Down

0 comments on commit 4ef88fe

Please sign in to comment.