Skip to content

Commit

Permalink
Improve ColorPickerFrame dragging
Browse files Browse the repository at this point in the history
  • Loading branch information
raethkcj committed Sep 21, 2022
1 parent ef1b1ae commit 854b909
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion RatingBuster.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ ColorPickerFrame:SetFrameStrata("FULLSCREEN_DIALOG")
ColorPickerFrame:SetMovable(true)
ColorPickerFrame:EnableMouse(true)
ColorPickerFrame:RegisterForDrag("LeftButton")
ColorPickerFrame:SetScript("OnDragStart", ColorPickerFrame.StartMoving)
ColorPickerFrame:SetScript("OnDragStart", function(self, button)
for _, frame in ipairs(C_System.GetFrameStack()) do
if frame == ColorPickerFrameHeader then
ColorPickerFrame:StartMoving()
end
end
end)
ColorPickerFrame:SetScript("OnDragStop", ColorPickerFrame.StopMovingOrSizing)
ColorPickerFrame:Show()

Expand Down

0 comments on commit 854b909

Please sign in to comment.