From 7a17a6d6ad5a1dc92f0b642ac44d25e12b428f14 Mon Sep 17 00:00:00 2001 From: YgorSouza <43298013+YgorSouza@users.noreply.github.com> Date: Mon, 27 May 2024 19:23:15 +0200 Subject: [PATCH] Plot now respects the `interact_radius` set in the UI's style (#4520) * Closes #4519 --- crates/egui_plot/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui_plot/src/lib.rs b/crates/egui_plot/src/lib.rs index a46b7a22..6dec9d72 100644 --- a/crates/egui_plot/src/lib.rs +++ b/crates/egui_plot/src/lib.rs @@ -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()