Skip to content

Commit 09cf4e2

Browse files
committed
Fix being able to hover two slots at once
1 parent 44a5a2a commit 09cf4e2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Classes/CompareTab.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3812,7 +3812,8 @@ function CompareTabClass:DrawItems(vp, compareEntry, inputEvents)
38123812
local labelX = (scrollOffsetX or 0) + 10
38133813
-- draw passive tree view when hovering over the label, if the slot is a jewel socket
38143814
if labelX <= cursorX and cursorX <= (labelX + labelW)
3815-
and drawY <= cursorY and cursorY <= (drawY + 20) then
3815+
-- +1 so that it isn't possible to hover two slots at the same time
3816+
and (drawY + 1) <= cursorY and cursorY <= (drawY + 20) then
38163817
if nodeId then
38173818
local boxSize = 250
38183819
-- anchor bottom left to label top left, keeping in mind what our viewport was

0 commit comments

Comments
 (0)