Skip to content

Commit 432c698

Browse files
Merge pull request #38 from PathOfBuildingCommunity/fix_tree_hotkeys
Fix weapon tree hotkey overriding other tree hotkeys
2 parents fd80fa3 + 47870c2 commit 432c698

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Classes/PassiveTreeView.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ function PassiveTreeViewClass:Draw(build, viewPort, inputEvents)
8989
-- Dragging won't actually commence unless the cursor moves far enough
9090
self.dragX, self.dragY = cursorX, cursorY
9191
end
92-
elseif mOver then
93-
if IsKeyDown("ALT") and event.key == "WHEELDOWN" then
92+
elseif IsKeyDown("ALT") and mOver then
93+
if event.key == "WHEELDOWN" then
9494
spec.allocMode = math.max(0, spec.allocMode - 1)
95-
elseif IsKeyDown("ALT") and event.key == "WHEELUP" then
95+
elseif event.key == "WHEELUP" then
9696
spec.allocMode = math.min(2, spec.allocMode + 1)
9797
end
9898
elseif event.key == "p" then

0 commit comments

Comments
 (0)