On my MacBook (Monterey 12.3.1), I recently switched from the standard terminal to iterm2. However, I noticed some strange behavior when using vim in the new terminal. If I scrolled to the top of the file using the mouse, not only did my cursor remain in its current position but I was able to scroll beyond the beginning of the file into the terminal output.
With the standard terminal, the cursor moved with my mouse scroll and it stopped when it reached the beginning of the file. Is there a way to attain this behavior with iterm2?