Macos – iTerm2 – scroll less output with mouse

itermmacosmousescrollterminal

I just switched from OSX Terminal to iTerm2, and I seem to have lost one piece of functionality.
In Terminal, I could scroll through output of the less command with my mouse, because I had installed MouseTerm.

However, when I try scrolling less output in iTerm2, the window's scrollbar moves instead.
Strangely, scrolling works as expected with vim.

How can I scroll less output with my mouse in iTerm2?

Best Answer

Now it is implemented in iTerm2 and can be activated by

Settings -> Advanced -> Scroll wheel sends arrow keys when in alternate screen mode and change it to Yes

image of "Scroll wheel sends arrow keys when in alternate screen mode" setting

(defaults write com.googlecode.iterm2 AlternateMouseScroll -bool true still works but it just changes the same setting)