GetCursorScaledPosition

Returns the scaled position of the cursor. local x, y =

Returns

 * x
 * The scaled x position of the cursor


 * y
 * The scaled y position of the cursor

Example
local x, y = ; message('('..x..', '..y..')');

Result

 * (25.45218785412654, 375.45610597856123)

Code
local function local scale, x, y = UIParent:GetScale, GetCursorPosition return x / scale, y / scale end