egui/crates
Emil Ernerfeldt 53098fad7b
Support vertical-only scrolling by holding down Alt (#7124)
* Closes https://github.com/emilk/egui/issues/7120

You can now zoom only the X axis by holding down shift, and zoom only
the Y axis by holding down ALT.

In summary

* `Shift`: horizontal
* `Alt`: vertical
* `Ctrl`: zoom (`Cmd` on Mac)

Thus follows:
* `scroll`: pan both axis (at least for trackpads and mice with two-axis
scroll)
* `Shift + scroll`: pan only horizontal axis
* `Alt + scroll`: pan only vertical axis
* `Ctrl + scroll`: zoom all axes
* `Ctrl + Shift + scroll`: zoom only horizontal axis
* `Ctrl + Alt + scroll`: zoom only vertical axis

This is provided the application uses `zoom_delta_2d` for its zooming
needs.

The modifiers are exposed in `InputOptions`, but it is strongly
recommended that you do not change them.

## Testing
Unfortunately we have no nice way of testing this in egui.
But I've tested it in `egui_plot`.
2025-06-07 19:18:13 +02:00
..
ecolor Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
eframe Typo in `run_native` doc comment (replace "a an" with "an") (#7094) 2025-06-03 16:57:43 +02:00
egui Support vertical-only scrolling by holding down Alt (#7124) 2025-06-07 19:18:13 +02:00
egui-wgpu Track original SVG size (#7098) 2025-05-28 08:33:01 +02:00
egui-winit Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui_demo_app Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
egui_demo_lib Track original SVG size (#7098) 2025-05-28 08:33:01 +02:00
egui_extras Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
egui_glow Track original SVG size (#7098) 2025-05-28 08:33:01 +02:00
egui_kittest Update to wgpu 25 (#6744) 2025-05-10 13:16:49 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
emath Fix sometimes blurry SVGs (#7071) 2025-05-21 20:01:40 +02:00
epaint Remove things that have been deprecated for over a year (#7099) 2025-05-28 09:47:15 +02:00
epaint_default_fonts Update `emoji-icon-font` with fix for fullwidth latin characters (#7067) 2025-05-21 13:22:23 +02:00