mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
Apply negative scroll multiplier in alternate screen mode
Fixes kovidgoyal/kitty#1299
This commit is contained in:
parent
30b5e8bf8f
commit
7421a0b9e3
1 changed files with 2 additions and 0 deletions
|
|
@ -615,6 +615,8 @@ scroll_event(double UNUSED xoffset, double yoffset, int flags) {
|
|||
// Only use wheel_scroll_multiplier if we are scrolling kitty scrollback or in mouse
|
||||
// tracking mode, where the application is responsible for interpreting scroll events
|
||||
yoffset *= OPT(wheel_scroll_multiplier);
|
||||
} else if (OPT(wheel_scroll_multiplier) < 0) {
|
||||
yoffset *= -1;
|
||||
}
|
||||
s = (int) round(yoffset);
|
||||
// apparently on cocoa some mice generate really small yoffset values
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue