View Single Post
06-02-19, 01:23 AM   #9
gemt
A Murloc Raider
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 4
Originally Posted by elcius View Post
The problem is that it uses GetCursorPosition, but does not account for frame scale. if you override the handler it may work.

Lua Code:
  1. WorldMapFrame.ScrollContainer.GetCursorPosition = function(f)
  2.     local x,y = MapCanvasScrollControllerMixin.GetCursorPosition(f);
  3.     local s = WorldMapFrame:GetScale();
  4.     return x/s, y/s;
  5. end
Thank you! This straight up solves the problem.
  Reply With Quote