fix: drag and drop working
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user