RaiderIO / raiderio-addon

RaiderIO AddOn
https://raider.io/addon
Other
41 stars 22 forks source link

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

Open frozn opened 6 months ago

frozn commented 6 months ago

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:

https://github.com/RaiderIO/raiderio-addon/blob/3cf78b53397f70b04cf14b792c1055756eedcf51/core.lua#L5701-L5709

Calling SetUnit() here will make the tooltip sticky.

Vladinator commented 6 months ago

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 commented 6 months ago

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