A good temporary fix for this bug is to open up anything that would normally release your mouse, like the escape menu, and then return to game.
This is the method I now use during testing. Thanks for sharing it :-)
-Cheers