I use tmux on my remote terminal. I found that when the remote terminal was disconnected abnormally (e.g., I just closed my laptop without exiting remote terminal normally), my terminal on iTerm will start to output random characters if I scroll my mouse, or click.
Any advice how to fix it?