aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-24 14:22:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-12-28 16:10:03 +0000
commitc9086e6d4f6ef25196843dcc9ee80906dd7d1534 (patch)
treec93494dafc136f44798fd668a401ee40728cb0a8 /scripts
parentterm_mouse_grabbed(): make ‘seat’ argument const (diff)
input: apply scrollback.multplier in alterate scroll mode
Before this patch, foot only applied [scrollback].multiplier on the normal screen, never the alt screen. However, scrolling can be done in two ways on the alt screen: If the application has enabled mouse support, we simply pass on the mouse scroll events to the application. Here, it makes sense to not apply the multiplier, and instead let the application choose how much to scroll for each scroll event. But, if the application has not enabled mouse support, we can still scroll by simulating the arrow keys being pressed - alternate scrolling (private mode 1007). This is enabled by default in foot (but can be disabled in foot.ini with the [mouse].alternate-scroll-mode setting). In this mode, it makes more sense to apply the multiplier. And that’s what this patch changes - the multiplier is now applied, on the alt screen, when the application has not enabled mouse support, and alternate scrolling has been enabled in foot. Closes #859
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions