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:
CJ van den Berg 2026-02-18 14:50:17 +01:00
parent f11b99b5ad
commit 767d3a5bfd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
2 changed files with 30 additions and 24 deletions

View file

@ -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;
}