From 31ccffdb6ddbb702e64a51cb4e70d96b497caa0f Mon Sep 17 00:00:00 2001 From: funkydude Date: Thu, 3 Nov 2022 01:05:08 +0000 Subject: [PATCH] Prevent Blizzard messing with the auto hide/show of the zoom buttons, closes #274 --- SexyMap.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SexyMap.lua b/SexyMap.lua index 86ca9dc..67e6eea 100644 --- a/SexyMap.lua +++ b/SexyMap.lua @@ -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 ]]--