Raider.IO Mythic Plus, Raid Progress, and Recruitment

Raider.IO Mythic Plus, Raid Progress, and Recruitment

341M Downloads

sticky unit tooltip if pressing modifier key while hovering over a unit

frozn opened this issue ยท 2 comments

commented

If you are hovering over a unit, press e.g. shortly the ALT key, and then move your mouse out of the unit, the tooltip doesn't fade out. tested it under retail 10.2.7.

I nailed it down to the following section:

raiderio-addon/core.lua

Lines 5701 to 5709 in 3cf78b5

---@param tooltip GameTooltip
---@param state TooltipState
local function UpdateTooltip(tooltip, state)
-- if unit simply refresh the unit and the original hook will force update the tooltip with the desired behavior
local _, tooltipUnit = tooltip:GetUnit()
if tooltipUnit then
tooltip:SetUnit(tooltipUnit)
return
end

Calling SetUnit() here will make the tooltip sticky.

commented

Happens also if all addons are disabled except RaiderIO. I assume, that manually calling SetUnit() cuts "the connection" with the hovering world unit, so that FadeOut() isn't called here (I checked it).

commented

Which tooltip addon are you using?

It's a general behavior to re-fresh the tooltip by re-drawing it for the unit again.

It could be other factors affecting behavior, which makes it harder to track down the actual cause.

It could even be taint related issues, and those are difficult to figure out.