From a775f7af3318f17df04f2b2ceb5785c18978735c Mon Sep 17 00:00:00 2001 From: Parnic Date: Fri, 23 Sep 2022 11:07:37 -0500 Subject: [PATCH] Fix buttons not working on 10.0 --- Breakables.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Breakables.lua b/Breakables.lua index a820f60..c71b785 100644 --- a/Breakables.lua +++ b/Breakables.lua @@ -932,7 +932,7 @@ function Breakables:CreateButtonFrame() frame:SetHeight(buttonSize) frame:EnableMouse(true) - frame:RegisterForClicks("LeftButtonUp") + frame:RegisterForClicks("LeftButtonUp", "LeftButtonDown") if not frame.OnMouseDownFunc then frame.OnMouseDownFunc = function(frame) self:OnMouseDown(frame) end @@ -1106,7 +1106,7 @@ function Breakables:FindBreakables(bag) btn:SetWidth(buttonSize) btn:SetHeight(buttonSize) btn:EnableMouse(true) - btn:RegisterForClicks("AnyUp") + btn:RegisterForClicks("LeftButtonUp", "LeftButtonDown") btn:SetAttribute("type1", "spell")