Improve scrolling on touchpads
This commit is contained in:
parent
e62f8b9292
commit
fa8ed07dab
1 changed files with 1 additions and 1 deletions
|
|
@ -306,7 +306,7 @@ where
|
|||
Event::Mouse(mouse_event) => match mouse_event {
|
||||
MouseEvent::WheelScrolled { delta } => match delta {
|
||||
ScrollDelta::Lines { x, y } => {
|
||||
buffer.action(TextAction::Scroll(-y as i32 * 6));
|
||||
buffer.action(TextAction::Scroll((-y * 6.0) as i32));
|
||||
Status::Captured
|
||||
},
|
||||
_ => Status::Ignored,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue