Apply negative scroll multiplier in alternate screen mode
Fixes kovidgoyal/kitty#1299
This commit is contained in:
parent
30b5e8bf8f
commit
7421a0b9e3
@ -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…
x
Reference in New Issue
Block a user