Issue with right click and drag

Since updating from 4.10.4 to 4.11.1, my camera rotation has stopped working properly. It should work in the following way:

Right click sets a CameraIsAdjustable boolean to true while held. If CameraIsAdjustable, Mouse X and Mouse Y adjust the pitch and yaw of a SpringArm.

This works fine for the first right click, however, after releasing the button, Mouse X and Mouse Y return 0.0 every tick, even if the mouse has moved.

If the game is run from a tab other than the map tab (creating a popup), Mouse X and Mouse Y never return anything other than 0.0.

The Set Input Mode Game and UI workaround in answer to this question appears to have resolved the issue, although I’m not sure what caused it.