Skip to content

Commit

Permalink
Improve TextEditor scroll interaction with a touchpad
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Oct 27, 2023
1 parent 1b534bd commit c8eca4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/src/text_editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ impl Update {
}
}
mouse::ScrollDelta::Pixels { y, .. } => {
-y.signum() as i32
(-y / 4.0) as i32
}
},
})
Expand Down

0 comments on commit c8eca4e

Please sign in to comment.