Skip to content

Commit

Permalink
Plot now respects the interact_radius set in the UI's style (#4520)
Browse files Browse the repository at this point in the history
* Closes #4519
  • Loading branch information
YgorSouza authored May 27, 2024
1 parent 8553e73 commit 7a17a6d
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 7a17a6d

Please sign in to comment.