Mouse scrolling doesn't work in tmux the way it works when I run shell without tmux (in Gnome Terminal). It seems tmux sends mouse scroll events as if I pressed Up/Down keys. But I want it to scroll though the shell output history. Is there a way to make tmux work like this?
Note: I know how to scroll with the keyboard (thanks to another question here).
I tried mouse scrolling in two versions of tmux: