Hey,
I’m having an issue with my target changing randomly during combat. It doesn’t matter whether it’s an enemy or a friendly target. I used to rely on an addon for this, but it stopped working in patch 11.1.
The addon I used was called Suppress Right Click, and its description is as follows:
Suppress Right Click
When the right mouse button is bound to “mouse look,” you may accidentally change your target during combat. This happens when you hold down the right mouse button to adjust the camera and player direction while (accidentally) hovering over a minor mob. If you don’t move the mouse enough, WoW treats it as if you had simply right-clicked the mob.
I first noticed this issue while tanking, but I assume it affects melee DPS players as well. Most people I spoke to didn’t seem aware of the problem—I suppose it depends on individual playstyle and habits.
Anyway, if you’re losing your target seemingly at random, this addon may help.
Usage:
During combat:
• The addon suppresses any single right-clicks without disabling mouse look.
• If you need to interact with an in-world element or start auto-attacks, perform a double right-click instead of a single one.
Outside of combat:
• Single right-clicks work as usual for interacting with NPCs, looting, and starting auto-attacks.
Does anyone have an idea on how to fix this issue?
4 Likes
Same issue here
Weakaura creators also found the same issue after 11.1 update, seems like a blizzard issue
Weakaura name: MouselookStop - Disable Right Click Targeting
Have you found any solution?
This has been around for long and is annoying to say the least, i have used addons/wa’s that actually fixed this by not allowing targeting with right click during combat up until 11.1 but still allowing to interact when you double right click.
They changed something about the mouse interaction in 11.1 so now these addons/wa’s either partially work like mouselookstop as in they still occasionally target a friendly or they work too well like supress right click and you cant double click to interact with anything anymore in combat unless you get lucky after trying 10 times.
Shame, so annoying to lose the target in keys and landing on a friendly.
There is however an option to use a key to interact with things in wow, might try that later (make sure to assign that key as well). Clunky but better than nothing i guess.
Solution someone mentioned
Create these 2 macros and just click them when you log in.
/run local f=CreateFrame(“button”,“mlook”)f:RegisterForClicks(“AnyDown”,“AnyUp”)f:SetScript(“OnClick”,function(s,b,d)if d then MouselookStart()else MouselookStop()end end)SecureStateDriverManager:RegisterEvent(“UPDATE_MOUSEOVER_UNIT”)
/run local f=CreateFrame(“frame”,nil,nil,“SecureHandlerStateTemplate”)RegisterStateDriver(f,“mov”,“[@mouseover,exists]1;0”)f:SetAttribute(“_onstate-mov”,“if newstate==1 then self:SetBindingClick(1,‘BUTTON2’,‘mlook’)else self:ClearBindings()end”)
Did you try to actually replace a mouse? I had this issue with faulty mouse. Basically when you keep your right button down, it’s actually not reliable and might momentarily fire “up” and “down” events which cause a right click detection in the game. This issue is especially present with Logitech mouses which are of very low quality according to my experience.
im having the same problem i had it since bfa or sl cant remember there was an addon i used and it helped supress right click but its from 2015 and does not work anymore
other addons dont work also right click modifiers, the weakaura is not working
im trying now the macros mentioned above
idk what else to do its really annoying
I still have this problem. Nothing helped me 
i contacted support about the issue he suggested some usual solutions nothing helped like stikcy targeting, click casting on default he suggesting using in game bug report to make the devs know
what i see in game is that i lose target less maybe right click modifier works or i press right click in combat side of the screen
its still happening
Me and chat GPT tried to fix the previous addon I was using and it worked. After making the changes it seems that the addon works.
So, to make it work for you:
- Download this addon - SuppressRightClick
- You are editing the “SuppressRightClick.lua” file
- Delete the content and paste the one below and restart the entire game.
local frame = CreateFrame(“Frame”)
local wasMouselooking = false
frame:SetScript(“OnUpdate”, function(self, elapsed)
if UnitAffectingCombat(“player”) then
if IsMouselooking() then
wasMouselooking = true
elseif wasMouselooking then
wasMouselooking = false
MouselookStop()
end
else
wasMouselooking = false
end
end)
It’s working for me so far. I’m curious if it’s fixed for you too 
open with notepad, delete whats in lua file and paste this? ima give it a go
does not seem to work the cursor stucks in during combat and you cant move the camera anymore
Delete the contents and paste my code. Save and restart the game.
i did its better but still happening
This one looks better:
local frame = CreateFrame(“Frame”)
local lastRightClick = 0
local doubleClickThreshold = 0.3
frame:SetScript(“OnMouseDown”, function(self, button)
if UnitAffectingCombat(“player”) and button == “RightButton” then
local now = GetTime()
if now - lastRightClick < doubleClickThreshold then
lastRightClick = 0 – Pozwól na podwójne kliknięcie
else
lastRightClick = now
return – Blokuje pojedyncze kliknięcie
end
end
end)
frame:SetScript(“OnUpdate”, function(self, elapsed)
if not UnitAffectingCombat(“player”) then
lastRightClick = 0 – Resetuj po wyjściu z walki
end
end)
1 Like
i think this addon actually works Xv Disable RMB (Right Click) Target
1 Like
Have the same issue since 11.1 will try the addons and give feedback its realy annoying to lose your target
Not for me
In my opinion my code works better then rest.
There are weakauras for that.
Hi all,
Thanks for the reports and shared workarounds to help with this.
No known issues related to this, but we’ve seen the reports and are taking a look!