@jaceguay said:
You could use X-mouse button https://www.highrez.co.uk/downloads/XMouseButtonControl.htm
or autohotkey to achieve this, the first are easier to use, in both you can configure this behavior by application so it won´t interfere with other programs.
I use a autohotkey script and have a friend that prefer X-mouse.
!!!!!!!!!!!!!!!!!!!THIS ONE IS A REAL SOLUTION!!!!!!!!!!!!!!!!!!!