View Single Post
06-21-18, 12:57 AM   #14
elcius
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Sep 2011
Posts: 75
Originally Posted by siweia View Post
Does anyone know how to scale the worldmap properly?
If you just simple SetScale, you won't be able to switch zones by click on different part of the maps.
Code:
WorldMapFrame.ScrollContainer.GetCursorPosition = function(f)
	local x,y = MapCanvasScrollControllerMixin.GetCursorPosition(f);
	local s = WorldMapFrame:GetScale();
	return x/s, y/s;
end
  Reply With Quote