Originally Posted by siweia
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