'tmux in vscode - slow down scrolling speed

I am trying to tweak the scroll buffer or speed of tmux in Visual Studio Code

At present, I have below lines in my ~/.tmux.conf which works fine in iTerm2 but does not behave at all. Scrolling is really fast in VS Code even with the slightest movement of the mouse.

run-shell ~/.tmuxd/tmux-better-mouse-mode/scroll_copy_mode.tmux
set -g mouse on
set -g @scroll-speed-num-lines-per-scroll 1

Not sure if it matters, but here are my settings of the integrated terminal in VS Code.

    "terminal.integrated.shell.osx": "/usr/local/bin/zsh",
    "terminal.integrated.cursorBlinking": true,
    "terminal.integrated.shellArgs.osx": [
        "-l"
    ],


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source