mirror of
https://github.com/emilk/egui.git
synced 2026-09-01 06:10:06 -04:00
Fix mac scroll modifier (#402)
* fix modifier key for mouse wheel zoom * update CHANGELOG * fix zoom modifier for web backend * improve instructions in plot demo window * accept emilk's proposed change Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com> * update UI instructions for Plot demo * improve UI instructions for plot demo Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
@@ -95,7 +95,15 @@ impl PlotDemo {
|
||||
});
|
||||
});
|
||||
|
||||
ui.label("Drag to pan, ctrl + scroll to zoom. Double-click to reset view.");
|
||||
ui.label("Pan by dragging, or scroll (+ shift = horizontal).");
|
||||
if cfg!(target_arch = "wasm32") {
|
||||
ui.label("Zoom with ctrl / ⌘ + mouse wheel, or with pinch gesture.");
|
||||
} else if cfg!(target_os = "macos") {
|
||||
ui.label("Zoom with ctrl / ⌘ + scroll.");
|
||||
} else {
|
||||
ui.label("Zoom with ctrl + scroll.");
|
||||
}
|
||||
ui.label("Reset view with double-click.");
|
||||
}
|
||||
|
||||
fn circle(&self) -> Curve {
|
||||
|
||||
Reference in New Issue
Block a user