anzz1 / TacoTip

Better player tooltips - class colors, talents/specialization, GearScore & more - for Classic / TBC / WoTLK
8 stars 19 forks source link

[Bug] Tooltip usually disappears when hovering over an action bar button with a unit behind it #29

Open Jakobud opened 1 year ago

Jakobud commented 1 year ago

When you hover the mouse over action bar buttons you get the tooltip for that specific action/spell/ability/macro. But when there is a unit (for example another player or an NPC) behind the action bar button on the screen TacoTip's tooltip usually disappears when hovering over that specific action bar button:

WowClassic_HW4gWZaFYE

It doesn't always happen but it does happen most of the time. The tooltip addon I used to use was TinyTooltip and it never had this issue.

This example uses the default Blizz action bars. But I have also seen the exact same behavior with other button addons like Bartender 4.

anzz1 commented 1 year ago

Thank you for the report, kudos for describing it well and the video is especially helpful to make it clear what is happening. :+1:

TacoTip shouldn't really affect when the tooltips are displayed, as it's only hooking into the native events and thus letting the game decide (with some minor exceptions). Care has been put into making it as non-invasive as possible.

The case could be that it's a Blizzard bug, so rather than TacoTip causing it, it is a bug in the default UI which TinyTooltip fixed. Or it's indeed a bug which TacoTip causes due to some odd interaction which doesn't exist in the base game. Either the case, I'll have to look into this.

Jakobud commented 1 year ago

Thanks. I've noticed it also does it with gear in your bags, loot in loot windows, even item links in chat, etc.

coryo commented 1 year ago

I've found this issue really annoying and it seems to be fixed if you remove the C_Timer.After wrapper for hiding the tooltip on UPDATE_MOUSEOVER_UNIT events in main.lua. I'm not sure of the consequences of this or what issue the 0 second timer was solving but everything appears to be working properly.

    elseif (event == "UPDATE_MOUSEOVER_UNIT") then
        if (GameTooltip:GetUnit()) then
            -- CAfter(0, function()
                if (not UnitExists("mouseover")) then
                    GameTooltip:Hide()
                end
            -- end)
        end
jaymada commented 1 year ago

I've found this issue really annoying and it seems to be fixed if you remove the C_Timer.After wrapper for hiding the tooltip on UPDATE_MOUSEOVER_UNIT events in main.lua. I'm not sure of the consequences of this or what issue the 0 second timer was solving but everything appears to be working properly.

    elseif (event == "UPDATE_MOUSEOVER_UNIT") then
        if (GameTooltip:GetUnit()) then
            -- CAfter(0, function()
                if (not UnitExists("mouseover")) then
                    GameTooltip:Hide()
                end
            -- end)
        end

removing this timer seems to break the "instant fade" feature

Jakobud commented 1 year ago

Has this been figured out yet? This is kind of a dealbreaker for this addon. It happens when hovering over buffs too.

stiffsen commented 1 year ago

I am also affected by this bug. If you need any testing support, let me know.

Jakobud commented 1 year ago

This addon I think is abandoned. I don't think he plays wow anymore.

stiffsen commented 1 year ago

This addon I think is abandoned. I don't think he plays wow anymore.

I found a decent workaround. The issue is gone for me if I disable the "instant fade"-feature. From my experience, you can even combine this addon with TipTac, which offers a lot more customizability, including tooltip fade.