Skip to content

Commit

Permalink
Prevent Blizzard messing with the auto hide/show of the zoom buttons, c…
Browse files Browse the repository at this point in the history
…loses #274
  • Loading branch information
funkydude committed Nov 3, 2022
1 parent db1108f commit 31ccffd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SexyMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,10 @@ function mod:SetupMap()
else
Minimap.ZoomIn:HookScript("OnClick", zoomBtnFunc)
Minimap.ZoomOut:HookScript("OnClick", zoomBtnFunc)
Minimap:SetScript("OnEnter", nil) -- Kill Blizzard's auto hide of zoom buttons
Minimap:SetScript("OnLeave", nil) -- Kill Blizzard's auto hide of zoom buttons
Minimap.ZoomIn:Show() -- Force show it after killing it above (hidden by default)
Minimap.ZoomOut:Show() -- Force show it after killing it above (hidden by default)
end

--[[ MouseWheel Zoom ]]--
Expand Down

0 comments on commit 31ccffd

Please sign in to comment.