mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 23:00:04 -04:00
Improve mouse selection accuracy (#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>
This commit is contained in:
@@ -328,7 +328,7 @@ impl Context {
|
|||||||
sense: Sense,
|
sense: Sense,
|
||||||
enabled: bool,
|
enabled: bool,
|
||||||
) -> Response {
|
) -> 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:
|
// Make it easier to click things:
|
||||||
let interact_rect = rect.expand2(
|
let interact_rect = rect.expand2(
|
||||||
|
|||||||
Reference in New Issue
Block a user