changed the function of the right click menu to MouseDown and which buttons to respond to
Kelly Crabbé [12-04-13 - 13:33]
changed the function of the right click menu to MouseDown and which buttons to respond to
diff --git a/rightclick.lua b/rightclick.lua
index 120be9a..44c65c0 100755
--- a/rightclick.lua
+++ b/rightclick.lua
@@ -30,10 +30,10 @@ local menuList = {
end},
}
-Minimap:SetScript("OnMouseUp", function(self, btn)
+Minimap:SetScript("OnMouseDown", function(self, btn)
if btn == "RightButton" then
ToggleDropDownMenu(1, nil, MiniMapTrackingDropDown, self)
- elseif btn == "MiddleButton" then
+ elseif btn == "LeftButton" and IsShiftKeyDown() then
EasyMenu(menuList, menuFrame, "cursor", 0, 0, "MENU", 2)
else
Minimap_OnClick(self)