Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MouseScrollDelta docs #781

Merged
merged 1 commit into from
Jul 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions crates/fj-viewer/src/input/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}

Expand Down