Read
How to Deal With Loss of "this", "event", "arg#"
and
wowwiki.com/UIHANDLER_OnMouseWheel or
wowprogramming.com/docs/scripts/OnMouseWheel
Code:
----------------------------------
-- Zoom
----------------------------------
Minimap:EnableMouseWheel(true)
Minimap:SetScript('OnMouseWheel', function(self, direction)
if (direction > 0) then
Minimap_ZoomIn()
else
Minimap_ZoomOut()
end
end)
__________________
I stopped playing back World of Warcraft in 2010 and I have no plans on returning.
This is a dead account and if you want to continue any of my addons or make a fork then feel free to do so.
This is your permission slip.
If you need to contact me, do so on
Twitter @v6ooo
Best regards, v6.