From 6905b31fa015c6103a9bea3a588c10f3d603f0fe Mon Sep 17 00:00:00 2001 From: shagu Date: Wed, 19 Feb 2020 21:35:24 +0100 Subject: [PATCH] actionbar: use specific mouse button types This is required to stay compatible with vanilla, where AnyUp and AnyDown didn't exist. --- modules/actionbar.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index eeea5b8c..f22e0fa4 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -779,7 +779,11 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function () end -- set keydown option - f:RegisterForClicks(C.bars.keydown == "1" and "AnyDown" or "AnyUp") + if C.bars.keydown == "1" then + f:RegisterForClicks("LeftButtonDown", "RightButtonDown") + else + f:RegisterForClicks("LeftButtonUp", "RightButtonUp") + end -- set animation f.animation:SetScript("OnUpdate", button_animations[C.bars.animation])