Fix buttons not working on 10.0

This commit is contained in:
2022-09-23 11:07:37 -05:00
parent 3a9db4082a
commit a775f7af33

View File

@ -932,7 +932,7 @@ function Breakables:CreateButtonFrame()
frame:SetHeight(buttonSize) frame:SetHeight(buttonSize)
frame:EnableMouse(true) frame:EnableMouse(true)
frame:RegisterForClicks("LeftButtonUp") frame:RegisterForClicks("LeftButtonUp", "LeftButtonDown")
if not frame.OnMouseDownFunc then if not frame.OnMouseDownFunc then
frame.OnMouseDownFunc = function(frame) self:OnMouseDown(frame) end frame.OnMouseDownFunc = function(frame) self:OnMouseDown(frame) end
@ -1106,7 +1106,7 @@ function Breakables:FindBreakables(bag)
btn:SetWidth(buttonSize) btn:SetWidth(buttonSize)
btn:SetHeight(buttonSize) btn:SetHeight(buttonSize)
btn:EnableMouse(true) btn:EnableMouse(true)
btn:RegisterForClicks("AnyUp") btn:RegisterForClicks("LeftButtonUp", "LeftButtonDown")
btn:SetAttribute("type1", "spell") btn:SetAttribute("type1", "spell")