Reverse horizontal scroll direction (#2105)
This commit is contained in:
parent
1c68be0631
commit
85baf79d17
8 changed files with 46 additions and 26 deletions
12
src/event.rs
12
src/event.rs
|
|
@ -759,15 +759,23 @@ pub enum MouseScrollDelta {
|
|||
/// Amount in lines or rows to scroll in the horizontal
|
||||
/// and vertical directions.
|
||||
///
|
||||
/// Positive values indicate movement forward
|
||||
/// (away from the user) or rightwards.
|
||||
/// Positive values indicate that the content that is being scrolled should move
|
||||
/// right and down (revealing more content left and up).
|
||||
LineDelta(f32, f32),
|
||||
|
||||
/// Amount in pixels to scroll in the horizontal and
|
||||
/// vertical direction.
|
||||
///
|
||||
/// Scroll events are expressed as a PixelDelta if
|
||||
/// supported by the device (eg. a touchpad) and
|
||||
/// platform.
|
||||
///
|
||||
/// Positive values indicate that the content being scrolled should
|
||||
/// move right/down.
|
||||
///
|
||||
/// For a 'natural scrolling' touch pad (that acts like a touch screen)
|
||||
/// this means moving your fingers right and down should give positive values,
|
||||
/// and move the content right and down (to reveal more things left and up).
|
||||
PixelDelta(PhysicalPosition<f64>),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue