Why my mouse is clicking with an offset at certain distance?

Continuing the discussion from Why my mouse is clicking with an offset at certain distance?:

Hi, I know this post is pretty old but for anyone having the same probleme in ue5 i found a way around it. You need to get the mouse position from the player controller and not from simple “get mouse position on viewport”!

Hope this will help anyone.