Lorti UI (Burning Crusade Classic)

Lorti UI (Burning Crusade Classic)

75.8k Downloads

Minimap zoom not working

Chordsy opened this issue ยท 1 comments

commented

Supposed to work by scrolling in/out. Not sure why it doesnt

commented

Solved by replacing the old zoom function with this

Minimap:EnableMouseWheel(true)
Minimap:SetScript("OnMouseWheel", function(mp, input)
local zoom = Minimap:GetZoom()
if input > 0 and zoom < 5 then
mp:SetZoom(zoom +1)
elseif input < 0 and zoom > 0 then
mp:SetZoom(zoom -1)
end
end)