More documentation

This commit is contained in:
Jeremy Soller 2022-10-19 08:34:34 -06:00
parent fa00813c0b
commit 405c77bb47
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 25 additions and 5 deletions

View file

@ -249,7 +249,9 @@ where
},
MouseEvent::WheelScrolled { delta } => match delta {
ScrollDelta::Lines { x, y } => {
buffer.action(TextAction::Scroll((-y * 6.0) as i32));
buffer.action(TextAction::Scroll {
lines: (-y * 6.0) as i32,
});
Status::Captured
},
_ => Status::Ignored,