Skip to content

Commit

Permalink
Improve mouse selection accuracy (#2304)
Browse files Browse the repository at this point in the history
* updated

* Update crates/egui/src/context.rs

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
  • Loading branch information
arshiyasolei and emilk committed Nov 16, 2022
1 parent 690dc2d commit 0ba0418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/context.rs
Expand Up @@ -328,7 +328,7 @@ impl Context {
sense: Sense,
enabled: bool,
) -> Response {
let gap = 0.5; // Just to make sure we don't accidentally hover two things at once (a small eps should be sufficient).
let gap = 0.1; // Just to make sure we don't accidentally hover two things at once (a small eps should be sufficient).

// Make it easier to click things:
let interact_rect = rect.expand2(
Expand Down

0 comments on commit 0ba0418

Please sign in to comment.