1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 04:40:03 -04:00

Plot boxed zoom with secondary mouse button (#1188)

This commit is contained in:
nongiach
2022-02-02 16:32:46 +01:00
committed by GitHub
parent c6ac1827f6
commit 869d556335
4 changed files with 83 additions and 0 deletions

View File

@@ -753,6 +753,7 @@ impl super::View for PlotDemo {
egui::reset_button(ui, self);
ui.collapsing("Instructions", |ui| {
ui.label("Pan by dragging, or scroll (+ shift = horizontal).");
ui.label("Box zooming: Right click to zoom in and zoom out using a selection.");
if cfg!(target_arch = "wasm32") {
ui.label("Zoom with ctrl / ⌘ + pointer wheel, or with pinch gesture.");
} else if cfg!(target_os = "macos") {