This seems to be a MacOS specific issue. Why is this happening? Is it a bug or should the developer handle this somehow?
When playing a project in the editor and the mouse capture is enabled and set to “Capture Permanently Including Mouse Down”, the mouse cursor position is reset to the initial click event position on every click.
See the video attached. The red debug sphere moving around the map is the world collision position under the mouse cursor. Whenever the mouse is clicked, a red debug sphere is also drawn on the tip of the tank barrel. After each click the cursor is instantly reset to the position where the initial mouse click happened.
The code to get the world position is PlayerController->GetHitResultUnderCursor(ECollisionChannel::ECC_Visibility, false, HitResult);
. Printing this every tick shows the instantaneous switch to the first coordinates on every click.
The issue does not occur if the mouse capture settings are “Capture During Mouse Down”.
This has also been reported by other Mac users: