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
+1 -1
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()