From 5047297402fb60edf2897a5795d56a6afe713d0f Mon Sep 17 00:00:00 2001 From: Sam Jeeves Date: Wed, 6 Jul 2022 15:14:12 +0200 Subject: [PATCH] Fix MouseScrollDelta docs --- crates/fj-viewer/src/input/event.rs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/crates/fj-viewer/src/input/event.rs b/crates/fj-viewer/src/input/event.rs index 41f68bd91..0160e578e 100644 --- a/crates/fj-viewer/src/input/event.rs +++ b/crates/fj-viewer/src/input/event.rs @@ -12,13 +12,12 @@ pub enum Event { Scroll(MouseScrollDelta), } -/// Describes a difference in the mouse scroll wheel state. +/// Describes a difference in the vertical mouse scroll wheel state. +/// Positive values indicate movement forward (away from the user). pub enum MouseScrollDelta { - /// Amount in lines to scroll in the horizontal direction. - /// - /// Positive values indicate movement forward (away from the user). + /// Amount in lines to scroll. Line(f64), - /// Amount in pixels to scroll in the vertical direction. + /// Amount in pixels to scroll. Pixel(f64), }