Skip to content

Commit 5bce301

Browse files
arshiyasoleiemilk
authored andcommitted
Improve mouse selection accuracy (emilk#2304)
* 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>
1 parent bd39a92 commit 5bce301

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/egui/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ impl Context {
328328
sense: Sense,
329329
enabled: bool,
330330
) -> Response {
331-
let gap = 0.5; // Just to make sure we don't accidentally hover two things at once (a small eps should be sufficient).
331+
let gap = 0.1; // Just to make sure we don't accidentally hover two things at once (a small eps should be sufficient).
332332

333333
// Make it easier to click things:
334334
let interact_rect = rect.expand2(

0 commit comments

Comments
 (0)