I am using Windows 10.
The problem is in my right mouse button's inconsistent input.
You already can use a keyboard short cut to switch the last tool in the file (Last tool: 'key_name").
But it does not disable right mouse behavior switching behavior.
So you just need to add an option to disable the last tool switch ( and tool cycling in mesh editor) on RMB click.
Thanks for creating an issue on Github.
Meanwhile, fix :
I started to use "X-mouse button" program to change mouse behavior. I remapped RMB press to press the "O" key and set "Move Pan: O" in the file ( then restart the spine editor). now then I press right mouse it is identical to pressing "O" key and it pans.
(Also I made so then I click middle button it clicks right instead and then I noticed that there are no accidental switches on panning, and every time I click without moving and release tools switch as expected. That proves that my RMB input is inconsistent)