public
Description: WoW Addon - Square Minimap and more
Homepage: http://www.tekkub.net/
Clone URL: git://github.com/tekkub/squeenix.git
Click here to lend your support to: squeenix and make a donation at www.pledgie.com !
squeenix / Scrollzoom.lua
100644 17 lines (12 sloc) 0.46 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
if not Squeenix then return end
local Squeenix = Squeenix
 
 
local f = CreateFrame("Frame", nil, Minimap)
f:SetFrameStrata("LOW")
f:EnableMouse(false)
f:SetPoint("TOPLEFT", Minimap, "TOPLEFT")
f:SetPoint("BOTTOMRIGHT", Minimap, "BOTTOMRIGHT")
f:EnableMouseWheel(true)
f:SetScript("OnMouseWheel", function(frame, delta)
if Squeenix.db.noscrollzoom then return end
if delta > 0 then MinimapZoomIn:Click() elseif delta < 0 then MinimapZoomOut:Click() end
end)