Skip to content

Commit

Permalink
Fixed a bug where drag interaction with item button would not work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cidan committed Sep 3, 2024
1 parent 8c11510 commit 1acb8d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion themes/themes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,9 @@ function themes.SetupBagButton(bag, decoration)
end
end)
bagButton:RegisterForClicks("LeftButtonUp", "RightButtonUp")
bagButton:SetScript("OnReceiveDrag", bag.CreateCategoryForItemInCursor)
addon.SetScript(bagButton, "OnReceiveDrag", function(ctx)
bag:CreateCategoryForItemInCursor(ctx)
end)
addon.SetScript(bagButton, "OnClick", function(ctx, _, e)
if e == "LeftButton" then
if db:GetFirstTimeMenu() then
Expand Down

0 comments on commit 1acb8d7

Please sign in to comment.