Forgive my ignorance but does the tooltip itself have an onleave event? I an able to interact with the tooltip but when the mouse leaves it it stays there until i mouse back onto the LDB point and leave it.
|
Taking a look at the LibQTip-1.0 api
here at WowAce, the tooltip doesn't appear to have an automatic OnLeave function. The way I understand it is that the tooltip is a (collection of) frame/s, so you could register a function to the tootip's OnLeave event, but the easier way to close it is provided by the API. :SetAutoHideDelay(delay, alternateFrame, releaseHandler)
EG:
Lua Code:
-- Hide after 0.25 seconds outside of the tooltip or an LibDataBroker data object
function LDB_DO:OnEnter(self)
tooltip = LibStub('LibQTip-1.0'):Acquire('MyFooBarTooltip', 5, "LEFT", "CENTER")
tooltip:SmartAnchorTo(self)
tooltip:SetAutoHideDelay(0.25, self)
DisplayTooltip() -- Tooltip population function
end
The above code is from the LibQTip API reference.