Skip to content

Commit bc9399c

Browse files
author
LocalIdentity
committed
Fix invisible support and active boxes applying when clicking on box
The buttons for sorting by support or active skill gem were invisible for the imbued box but still applying if clicked. Now they do not apply when clicking in that area
1 parent 0b8a522 commit bc9399c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Classes/GemSelectControl.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -796,7 +796,7 @@ function GemSelectClass:OnKeyDown(key, doubleClick)
796796
local width, height = self:GetSize()
797797
local cursorX, cursorY = GetCursorPos()
798798
-- constrain cursor to the height of the control
799-
if key == "LEFTBUTTON" and (cursorY > y and cursorY < (y + height)) then
799+
if not self.imbuedSelect and key == "LEFTBUTTON" and (cursorY > y and cursorY < (y + height)) then
800800
-- no need to constrain right side of the S overlay as that's outside hover
801801
if cursorX > (x + width - 18) then
802802
self.sortGemsBy = "support" -- only need to change sortBy, code will continue to UpdateSortCache

0 commit comments

Comments
 (0)