Skip to content

Commit

Permalink
Merge pull request #2583 from iced-rs/fix/scrolling-direction-with-tr…
Browse files Browse the repository at this point in the history
…ackpad

Fix scrolling direction with trackpad in `scrollable`
  • Loading branch information
hecrj authored Sep 18, 2024
2 parents 035d4e3 + 4599210 commit 1cf284a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/src/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ where
// TODO: Configurable speed/friction (?)
-movement * 60.0
}
mouse::ScrollDelta::Pixels { x, y } => Vector::new(x, y),
mouse::ScrollDelta::Pixels { x, y } => -Vector::new(x, y),
};

state.scroll(
Expand Down

0 comments on commit 1cf284a

Please sign in to comment.