Scroll at least one line on macOS in TextEditor
This commit is contained in:
parent
da5dd2526a
commit
7373dd856b
1 changed files with 5 additions and 1 deletions
|
|
@ -545,7 +545,11 @@ impl Update {
|
|||
action(Action::Scroll {
|
||||
lines: match delta {
|
||||
mouse::ScrollDelta::Lines { y, .. } => {
|
||||
-y.round() as i32 * 4
|
||||
if y > 0.0 {
|
||||
-(y * 4.0).min(1.0) as i32
|
||||
} else {
|
||||
0
|
||||
}
|
||||
}
|
||||
mouse::ScrollDelta::Pixels { y, .. } => {
|
||||
-y.signum() as i32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue