Round ScrollDelta::Lines in TextEditor
This commit is contained in:
parent
25d47c3238
commit
da5dd2526a
1 changed files with 1 additions and 1 deletions
|
|
@ -545,7 +545,7 @@ impl Update {
|
|||
action(Action::Scroll {
|
||||
lines: match delta {
|
||||
mouse::ScrollDelta::Lines { y, .. } => {
|
||||
-y as i32 * 4
|
||||
-y.round() as i32 * 4
|
||||
}
|
||||
mouse::ScrollDelta::Pixels { y, .. } => {
|
||||
-y.signum() as i32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue