Increase scrolling speed in Scrollable

This commit is contained in:
Héctor Ramón Jiménez 2019-11-24 12:54:31 +01:00
parent 5629716120
commit cfe975938b

View File

@ -163,7 +163,7 @@ where
match delta {
mouse::ScrollDelta::Lines { y, .. } => {
// TODO: Configurable speed (?)
self.state.scroll(y * 15.0, bounds, content_bounds);
self.state.scroll(y * 60.0, bounds, content_bounds);
}
mouse::ScrollDelta::Pixels { y, .. } => {
self.state.scroll(y, bounds, content_bounds);