Skip to content

Commit c008e48

Browse files
committed
closest by x setting
1 parent 4d5b62c commit c008e48

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

egui_plot/src/plot.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,11 @@ impl<'a> Plot<'a> {
352352
self
353353
}
354354

355+
pub fn closest_by_x(mut self, on: bool) -> Self {
356+
self.closest_by_x = on;
357+
self
358+
}
359+
355360
/// Config the button pointer to use for drag-to-pan. Default:
356361
/// [`Secondary`](PointerButton::Primary)
357362
#[inline]

0 commit comments

Comments
 (0)