1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

Plot now respects the interact_radius set in the UI's style (#4520)

* Closes #4519
This commit is contained in:
YgorSouza
2024-05-27 19:23:15 +02:00
committed by GitHub
parent 8553e738e0
commit 7a17a6d6ad

View File

@@ -1666,7 +1666,7 @@ impl<'a> PreparedPlot<'a> {
return (Vec::new(), None);
}
let interact_radius_sq = (16.0_f32).powi(2);
let interact_radius_sq = ui.style().interaction.interact_radius.powi(2);
let candidates = items
.iter()