diff --git a/CHANGELOG.md b/CHANGELOG.md index eab55732de7..d35ef47c707 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ Changes since the last release can be found at 1`: pinch spread + /// + /// Note that egui also implement zooming by holding `Ctrl` and scrolling the mouse wheel, + /// so integration need NOT emit this `Zoom` event in those cases, just [`Self::MouseWheel`]. + /// + /// As a user, check [`crate::InputState::smooth_scroll_delta`] to see if the user did any zooming this frame. Zoom(f32), /// IME Event diff --git a/crates/egui/src/input_state.rs b/crates/egui/src/input_state.rs index abd6028b9c7..ad0e7b41f2a 100644 --- a/crates/egui/src/input_state.rs +++ b/crates/egui/src/input_state.rs @@ -27,6 +27,8 @@ const MAX_DOUBLE_CLICK_DELAY: f64 = 0.3; // TODO(emilk): move to settings /// Input state that egui updates each frame. /// +/// You can access this with [`crate::Context::input`]. +/// /// You can check if `egui` is using the inputs using /// [`crate::Context::wants_pointer_input`] and [`crate::Context::wants_keyboard_input`]. #[derive(Clone, Debug)]