fix: drag and drop working

This commit is contained in:
Salikh Gurgenidze
2025-11-21 17:08:32 +04:00
parent 153900a6d5
commit 9387d58135
2 changed files with 46 additions and 16 deletions
+10
View File
@@ -640,6 +640,11 @@ function Guda_ItemButton_OnReceiveDrag(self)
-- Place the item being dragged
PickupContainerItem(self.bagID, self.slotID)
-- Trigger UI update after drop completes (was skipped during drag)
if addon and addon.Modules and addon.Modules.BagFrame then
addon.Modules.BagFrame:Update()
end
end
-- Handle mouse-up to emulate Blizzard drop behavior on 1.12 where OnReceiveDrag may not always fire
@@ -654,6 +659,11 @@ function Guda_ItemButton_OnDragStop(self)
if ResetCursor then
ResetCursor()
end
-- Trigger UI update after drag completes (was skipped during drag)
if addon and addon.Modules and addon.Modules.BagFrame then
addon.Modules.BagFrame:Update()
end
end
-- Stack split callback (called by StackSplitFrame)