Improve TextEditor scroll interaction with a touchpad

This commit is contained in:
Héctor Ramón Jiménez 2023-10-27 16:37:58 +02:00
parent 1b534bda53
commit c8eca4e6bf
No known key found for this signature in database
GPG key ID: 140CC052C94F138E

View file

@ -628,7 +628,7 @@ impl Update {
}
}
mouse::ScrollDelta::Pixels { y, .. } => {
-y.signum() as i32
(-y / 4.0) as i32
}
},
})