Bagshui 1.6.5

- Changelog: release the Right/Top anchor UI-scale fix as 1.6.5
- Defer inventory redraws while a window is being dragged
- Cache class-callback event ids in QueueClassCallback (less garbage per BAG_UPDATE)
This commit is contained in:
2026-11-01 02:26:58 +00:00
parent 05fa6e3dd9
commit 36fc7acdeb
5 changed files with 61 additions and 4 deletions
+9
View File
@@ -27,6 +27,15 @@ Bagshui:AddComponent(function()
return
end
-- Don't redraw while the window is being dragged. A full redraw (for example from a BAG_UPDATE
-- while looting in combat) resizes and re-lays out every button of a frame that is moving,
-- which shows up as a hitch. The update runs as soon as the window is dropped.
if self:IsDragInProgress() then
self.updateDeferredByDrag = true
self.updateDeferredByDragCascade = self.updateDeferredByDragCascade or cascade
return
end
-- Update is only needed if the window is visible.
if not self:Visible() and not self.forceCacheUpdate then
self.windowUpdateBlocked = false