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

Make shift-scroll do horizontal scrolling on all platforms (#1136)

Closes https://github.com/emilk/egui/issues/1135
This commit is contained in:
Emil Ernerfeldt
2022-01-21 10:48:44 +01:00
committed by GitHub
parent e4aa1e6e1a
commit a689b623a6
6 changed files with 21 additions and 4 deletions

View File

@@ -180,6 +180,8 @@ pub enum Event {
/// The direction of the vector indicates how to move the _content_ that is being viewed.
/// So if you get positive values, the content being viewed should move to the right and down,
/// revealing new things to the left and up.
///
/// Shift-scroll should result in horizontal scrolling (it is up to the integrations to do this).
Scroll(Vec2),
/// Zoom scale factor this frame (e.g. from ctrl-scroll or pinch gesture).