From 88cae50ac3356bf6aab6961bda39532149ef25db Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 17 Feb 2019 17:59:09 +0100 Subject: [PATCH] actionbar: disable animation on hidden bars --- modules/actionbar.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 5b9395ad..29e1ad18 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -907,8 +907,10 @@ pfUI:RegisterModule("actionbar", function () if ( pfUI_config.bars.keydown == "1" and keystate == "down" ) or (pfUI_config.bars.keydown == "0" and keystate == "up" ) or bar == 11 then -- trigger animation - frame.animation.active = 0 - frame.animation:Show() + if frame:GetAlpha() > 0.1 then + frame.animation.active = 0 + frame.animation:Show() + end -- clear highlight if not MouseIsOver(frame) then frame.highlight:Hide() end