From 0ba04184d5b1242948bc627bd140238829b8148e Mon Sep 17 00:00:00 2001 From: Arshia Soleimani <9458000+arshiyasolei@users.noreply.github.com> Date: Wed, 16 Nov 2022 02:26:02 -0800 Subject: [PATCH] Improve mouse selection accuracy (#2304) * updated * Update crates/egui/src/context.rs Co-authored-by: Emil Ernerfeldt Co-authored-by: Emil Ernerfeldt --- crates/egui/src/context.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/context.rs b/crates/egui/src/context.rs index a4a92447083..31455702519 100644 --- a/crates/egui/src/context.rs +++ b/crates/egui/src/context.rs @@ -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(