Skip to content

Commit

Permalink
Fix double-click to reset plot
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Jan 26, 2024
1 parent d05567e commit 4e52393
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 @@ -839,7 +839,7 @@ impl Plot {
}

// Allocate the plot window.
let response = ui.allocate_rect(plot_rect, Sense::drag());
let response = ui.allocate_rect(plot_rect, Sense::click_and_drag());
let rect = plot_rect;

// Load or initialize the memory.
Expand Down

0 comments on commit 4e52393

Please sign in to comment.