Skip to content

Commit

Permalink
Merge pull request #781 from jeevcat/sam/zoom-fixes
Browse files Browse the repository at this point in the history
Fix MouseScrollDelta docs
  • Loading branch information
hannobraun authored Jul 6, 2022
2 parents ff95a58 + 5047297 commit 1fb0c6e
Showing 1 changed file with 4 additions and 5 deletions.
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

0 comments on commit 1fb0c6e

Please sign in to comment.