Hello ,
This issue about the mouse not locking to the screen properly is a known issue (UE-7293), I will be sure to bump up the community interest for this issue. I am happy to hear that you have a workaround. Thank you for your information and time.
Make it a great day