diff --git a/flixel/addons/ui/FlxUIMouse.hx b/flixel/addons/ui/FlxUIMouse.hx index 4972b4f..e9abed5 100644 --- a/flixel/addons/ui/FlxUIMouse.hx +++ b/flixel/addons/ui/FlxUIMouse.hx @@ -40,10 +40,11 @@ class FlxUIMouse extends FlxMouse #if (flixel < version("5.9.0")) _globalScreenX = oldScreenX; _globalScreenY = oldScreenY; - updatePositions(); #else - setRawPositionUnsafe(oldRawX, oldRawY); + _rawX = oldRawX; + _rawY = oldRawY; #end + updatePositions(); } } }