Skip to content

Commit 7659023

Browse files
author
LocalIdentity
committed
Stop trade popup from showing item tooltips in background
1 parent 8dbdabd commit 7659023

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/CompareTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3913,7 +3913,7 @@ function CompareTabClass:DrawItems(vp, compareEntry, inputEvents)
39133913
-- Draw item tooltip on hover (compact mode only, on top of everything)
39143914
SetViewport()
39153915
local maxTooltipWidth = m_min(600, m_max(260, vp.width - 24))
3916-
if hoverItem and hoverItemsTab then
3916+
if not main.popups[1] and hoverItem and hoverItemsTab then
39173917
self.itemTooltip:Clear()
39183918
hoverItemsTab:AddItemTooltip(self.itemTooltip, hoverItem, nil, nil, maxTooltipWidth)
39193919
SetDrawLayer(nil, 100)
@@ -3922,7 +3922,7 @@ function CompareTabClass:DrawItems(vp, compareEntry, inputEvents)
39223922
end
39233923

39243924
-- Draw stat comparison tooltip when hovering Equip button
3925-
if hoverEquipItem and hoverEquipSlotName and not hoverItem then
3925+
if not main.popups[1] and hoverEquipItem and hoverEquipSlotName and not hoverItem then
39263926
self.itemTooltip:Clear()
39273927
self.itemTooltip.maxWidth = maxTooltipWidth
39283928
local calcFunc, calcBase = self.calcs.getMiscCalculator(self.primaryBuild)

0 commit comments

Comments
 (0)