Fix scrolling direction with trackpad in scrollable

This commit is contained in:
Héctor Ramón Jiménez 2024-09-18 20:41:49 +02:00
parent f897442831
commit 45992109dd
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -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(