More documentation
This commit is contained in:
parent
fa00813c0b
commit
405c77bb47
3 changed files with 25 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -227,7 +227,9 @@ fn main() {
|
|||
);
|
||||
}
|
||||
EventOption::Scroll(event) => {
|
||||
buffer.action(TextAction::Scroll(-event.y * 3));
|
||||
buffer.action(TextAction::Scroll {
|
||||
lines: -event.y * 3,
|
||||
});
|
||||
}
|
||||
EventOption::Quit(_) => return,
|
||||
_ => (),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue