Skip to content

Commit

Permalink
Merge pull request #2639 from l-const/consecutive-click-distance
Browse files Browse the repository at this point in the history
Introduce consecutive click distance check like other toolkit do such as gtk,qt, imgui.
  • Loading branch information
hecrj authored Oct 15, 2024
2 parents c01ef5b + 6c5799e commit f19bb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/mouse/click.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl Click {
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 f19bb02

Please sign in to comment.