Player targeting
Rangers have stealth on bow too.
I believe part of the problem used to be that right clicking with the mouse (typically used to turn the screen mid-combat by most people) would actually cause you to switch targets if you -right- clicked on something else while attempting to change your visual perspective.
However, they have since enabled a feature that allows you to disable that function (if you haven’t done so already). Just open up your preferences and make sure that the box that says “interact with right click” is disabled.
If it is disabled then there’s not much else to suggest from my end.
All those classes have access to stealth and you probably have autotargeting enabled. If your opponent goes into stealth, it drops target. Then, with autotarget enabled, you instantly switch targets and begin targeting turret, pet, or another player.
Member of [SALT] on Fort Aspenwood US