Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
frozn opened this issue May 18, 2024 · 2 comments
Open

Comments

@frozn
Copy link

frozn commented May 18, 2024

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.

@Vladinator
Copy link
Collaborator

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.

@frozn
Copy link
Author

frozn commented May 18, 2024

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants