If you’ve been around Irreal for even a little while, you know I hate using the mouse. I don’t like to use it anywhere but I particularly hate using it in Emacs. So I don’t—mostly. I use WebKit to display my HTML emails and it’s convenient to use the track pad (or the arrow keys) to scroll the email but mostly I never use the mouse while I’m in Emacs. Unfortunately, it’s really east to get inadvertent mouse actions with a track pad because your hands naturally lie on it when you’re typing.
If you, too, hate having to deal with the mouse, James Cherti—whom I’ve written about before [1, 2, 3]—has a solution. His inhibit-mouse package effectively turns off the mouse when you’re in Emacs and the mode is enabled. It seems like a nice package and may be just what you need.
As much as I hate the mouse—including the inadvertent clicks that take me to a different window in the middle of my work—I’m not sure I’d want to turn it off. The times when I do want to use it, it’s is to save work and having to stop and re-enable the mouse largely negates that.
Still, you may differ and, if so, this package could be just what you need to bring your runaway mouse under control. Cherti has a good write up about it in his README at the above link so take a look if you think you might be interested.