mirror of
https://github.com/parnic/breakables.git
synced 2025-06-16 17:40:13 -05:00
Fix buttons not working on 10.0
This commit is contained in:
@ -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")
|
||||
|
||||
|
Reference in New Issue
Block a user