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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user