WoWInterface - View Single Post - WorldMap GetCursorPosition
View Single Post
06-17-18, 09:25 AM   #2
A Scalebane Royal Guard
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 404
Blizzard actually did all the work:
local x, y = WorldMapFrame.ScrollContainer:GetNormalizedCursorPosition()
That will return the x, y coordinates taking into account map zoom, pan, etc...

Just multiply x and y by 100 and it should work like you want.

Last edited by Vrul : 06-17-18 at 09:26 AM. Reason: Forgot :
  Reply With Quote