When the mouse cursor exits the application window, and a mouse button is released, any MouseButton1 or MouseButton2 triggered input objects will continue to read as though the mouse button was not released. In this video, I am moving the mouse cursor out of the window before releasing the left mouse button, which causes the oar in my game to get stuck until the button is clicked agaiin.
Expected behavior
I would expect the mouse button to update regardless of if the cursor is inside the application window or not.
Other games and apps have the same behaviour as well (many just pause the application if you’re not focused on the main window). There is no reason for a game to still check input outside of the dedicated viewport space.