If you use a wireless mouse, its batteries might be low. Replace the batteries and check if this helps. If this does not work, you can use a wired mouse. The driver of your gaming mouse might have ...
You may have noticed that the Mouse cursor does not lock to the game window in Windows 11/10 at times. There are various instances of this issue. Sometimes, the mouse fails to lock in specific games ...