Fix setting waypoints on world map
Jim Whitehead [10-26-14 - 09:54]
Fix setting waypoints on world map
diff --git a/TomTom.lua b/TomTom.lua
index 506d9f3..b616afd 100755
--- a/TomTom.lua
+++ b/TomTom.lua
@@ -428,6 +428,11 @@ local world_click_verify = {
local origScript = WorldMapButton_OnClick
WorldMapButton_OnClick = function(self, ...)
+ if WorldMapButton.ignoreClick then
+ WorldMapButton.ignoreClick = false;
+ return;
+ end
+
local mouseButton, button = ...
if mouseButton == "RightButton" then
-- Check for all the modifiers that are currently set
@@ -450,8 +455,8 @@ WorldMapButton_OnClick = function(self, ...)
end
end
-if WorldMapButton:GetScript("OnMouseUp") == origScript then
- WorldMapButton:SetScript("OnMouseUp", WorldMapButton_OnClick)
+if WorldMapButton:GetScript("OnClick") == origScript then
+ WorldMapButton:SetScript("OnClick", WorldMapButton_OnClick)
end
local function WaypointCallback(event, arg1, arg2, arg3)