The camera always tries to smoothly look in the direction of the velocity of the player, but it spinning wasn't intended loli didn't fine tune the speed enough, so that might be why it happens
I think it might be that the game window in the browser isn’t capturing the mouse properly.