I have a mouse with a button that toggles the friction on the mouse wheel. This way I can scroll really fast, if I want to.
In tmux however, when I use the "frictionless" mode, it will continue scrolling, even if I stop the mouse wheel. I assume that happens because tmux counts up all the key events and then just scrolls that many lines ignoring whether or not the mouse itself is still scrolling. However this only happens with multiple horizontal panes and only on the pane on the very left.
Is there a way to tell tmux to stop scrolling when the mousewheel stops. Or stop scrolling when the mousewheel is turned in the other direction?
I'm currently using tmux 2.2 in xfce4-terminal 0.6.3-3 This behaviour does not occur in xterm or urxvt.
xev
output:
Scrolling up:
ButtonPress event, serial 25, synthetic NO, window 0x4a00001,
root 0x4b2, subw 0x0, time 335774900, (128,158), root:(2049,204),
state 0x10, button 4, same_screen YES
ButtonRelease event, serial 25, synthetic NO, window 0x4a00001,
root 0x4b2, subw 0x0, time 335774900, (128,158), root:(2049,204),
state 0x810, button 4, same_screen YES
Scrolling down:
ButtonPress event, serial 25, synthetic NO, window 0x4a00001,
root 0x4b2, subw 0x0, time 335776189, (128,158), root:(2049,204),
state 0x10, button 5, same_screen YES
ButtonRelease event, serial 25, synthetic NO, window 0x4a00001,
root 0x4b2, subw 0x0, time 335776189, (128,158), root:(2049,204),
state 0x1010, button 5, same_screen YES
The events are the same w/ and w/o "frictionless" mode
xev
.xev
doesn't recognise "smooth" / "frictionless" scrolling. See the comments of unix.stackexchange.com/a/139568/90751 to provide similar information viaxinput
. What terminal are you using, and does it support smooth scrolling when not runningtmux
?