Skip to content

Commit

Permalink
Handle the LibActionButton SpellFlyout for bar fading
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Nov 21, 2022
1 parent 9f452dd commit 20f9ccf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Bar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ local defaults = {

local Sticky = LibStub("LibSimpleSticky-1.0")
local LibWin = LibStub("LibWindow-1.1")
local LAB = LibStub("LibActionButton-1.0")
local snapBars = { WorldFrame, UIParent }

local barOnEnter, barOnLeave, barOnDragStart, barOnDragStop, barOnClick, barOnUpdateFunc, barOnAttributeChanged
Expand Down Expand Up @@ -412,8 +413,10 @@ function Bar:SetFadeOutDelay(delay)
end

local function MouseIsOverBar(bar)
local LABSpellFlyout = LAB:GetSpellFlyoutFrame()
if MouseIsOver(bar.overlay)
or (SpellFlyout and SpellFlyout:IsShown() and SpellFlyout:GetParent() and SpellFlyout:GetParent():GetParent() == bar and MouseIsOver(SpellFlyout)) then
or (SpellFlyout and SpellFlyout:IsShown() and SpellFlyout:GetParent() and SpellFlyout:GetParent():GetParent() == bar and MouseIsOver(SpellFlyout))
or (LABSpellFlyout and LABSpellFlyout:IsShown() and LABSpellFlyout:GetParent() and LABSpellFlyout:GetParent():GetParent() == bar and MouseIsOver(LABSpellFlyout)) then
return true
end
return false
Expand Down

0 comments on commit 20f9ccf

Please sign in to comment.