Skip to content

Commit

Permalink
Plot now respects the interact_radius set in the UI's style (emilk#…
Browse files Browse the repository at this point in the history
  • Loading branch information
YgorSouza authored and hacknus committed Oct 30, 2024
1 parent 5f45cf9 commit 4172b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui_plot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4172b82

Please sign in to comment.