Merge pull request #2583 from iced-rs/fix/scrolling-direction-with-trackpad

Fix scrolling direction with trackpad in `scrollable`
This commit is contained in:
Héctor Ramón 2024-09-18 20:54:42 +02:00 committed by GitHub
commit 1cf284a850
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -751,7 +751,7 @@ where
// TODO: Configurable speed/friction (?) // TODO: Configurable speed/friction (?)
-movement * 60.0 -movement * 60.0
} }
mouse::ScrollDelta::Pixels { x, y } => Vector::new(x, y), mouse::ScrollDelta::Pixels { x, y } => -Vector::new(x, y),
}; };
state.scroll( state.scroll(