fix: separate mouse and keyboard scrolling commands
So that fast_scroll and alt_scroll modes apply *only* to mouse inputs. see #507
This commit is contained in:
parent
f11b99b5ad
commit
767d3a5bfd
2 changed files with 30 additions and 24 deletions
|
|
@ -369,12 +369,12 @@ fn middle_click(_: *Self) error{Exit}!bool {
|
|||
}
|
||||
|
||||
fn mouse_click_button4(self: *Self) error{Exit}!bool {
|
||||
self.editor.scroll_up_pageup(.{}) catch {};
|
||||
self.editor.mouse_scroll_up();
|
||||
return true;
|
||||
}
|
||||
|
||||
fn mouse_click_button5(self: *Self) error{Exit}!bool {
|
||||
self.editor.scroll_down_pagedown(.{}) catch {};
|
||||
self.editor.mouse_scroll_down();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue