Addon compartment tooltip doesn't disappear properly
Slackluster opened this issue ยท 8 comments
When hovering over the SavedInstances entry for the addon compartment, the tooltip shows up. Great.
But when leaving the SavedInstances entry and hovering over another addon entry, the tooltip does not disappear. It only disappears when leaving the addon compartment entirely with the mouse.
This can cause multiple tooltips to be visible at the same time.
Running SavedInstances 10.1.5 (latest CurseForge release).
On second viewing, this only seems to happen when going from SavedInstances to WeakAuras, not when moving from SavedInstances to WeakAuras, when testing with AllTheThings, Rematch, Profession Shopping List this does not occur. However, it also does not occur when hovering from another addon to WeakAuras, so it seems to be a weird interaction between these two addons in particular.
I see the problem.
In SavedInstances, tooltip is shown when the compartment entry is entered, but won't hide the tooltip as soon as the entry is leaved but waits a bit. At this time, WeakAuras entry is entered and show the tooltip. And then the tooltip of SavedInstances is entered to prevent it from hiding. WeakAuras entry is "leaved" but they didn't register this.
I see the problem.
In SavedInstances, tooltip is shown when the compartment entry is entered, but won't hide the tooltip as soon as the entry is leaved but waits a bit. At this time, WeakAuras entry is entered and show the tooltip. And then the tooltip of SavedInstances is entered to prevent it from hiding. WeakAuras entry is "leaved" but they didn't register this.
So we need to add the onleave function in WA?
I think the WeakAuras is more like waiting for others to use GameTooltip, so the old content will be gone and "hide". The "delayed hide" of SI is intended but the "waiting to lost GameTooltip" of WeakAuras is not that like intended.
I think the WeakAuras is more like waiting for others to use GameTooltip, so the old content will be gone and "hide". The "delayed hide" of SI is intended but the "waiting to lost GameTooltip" of WeakAuras is not that like intended.
So do you think I should change it in WA or not?
I'd recommend doing so, yeah. The documentation on Wowpedia (which might not be the most direct source, but as a barely competent addon dev I use it a lot) does include it: https://wowpedia.fandom.com/wiki/Addon_compartment
I think the WeakAuras is more like waiting for others to use GameTooltip, so the old content will be gone and "hide". The "delayed hide" of SI is intended but the "waiting to lost GameTooltip" of WeakAuras is not that like intended.
So do you think I should change it in WA or not?
I'd recommend doing so too.