Made camera pan when player is moving outside view.