Fixed the camera-desync bug (#1) for some situations.

This solution works when the player scrolls onto a locked axis when the camera isn't already locked on that axis.
The bug still exists in situations where the player scrolls off and back onto a locked axis.