Skip to content

Commit

Permalink
Increase scrolling speed in Scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Nov 24, 2019
1 parent 5629716 commit cfe9759
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/widget/scrollable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cfe9759

Please sign in to comment.