View Single Post
10-27-10, 07:03 AM   #2
v6o
An Onyxian Warder
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 399
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.

Last edited by v6o : 10-27-10 at 07:09 AM. Reason: better link names
  Reply With Quote