We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b578c commit 7b7f6a6Copy full SHA for 7b7f6a6
src/gui.rs
@@ -370,16 +370,19 @@ impl MyApp {
370
self.plot_location = plot_inner.response.rect;
371
}
372
let separator_response = ui.separator();
373
- let resize_y = ui
+ let separator = ui
374
.interact(
375
separator_response.rect,
376
separator_response.id,
377
Sense::click_and_drag(),
378
)
379
- .on_hover_cursor(egui::CursorIcon::ResizeVertical)
380
- .drag_delta()
381
- .y;
+ .on_hover_cursor(egui::CursorIcon::ResizeVertical);
382
+ let resize_y = separator.drag_delta().y;
+
383
+ if separator.double_clicked() {
384
+ self.plot_serial_display_ratio = 0.45;
385
+ }
386
self.plot_serial_display_ratio = (self.plot_serial_display_ratio
387
+ resize_y / panel_height)
388
.clamp(0.1, 0.9);
0 commit comments