Error checking on panTo inputs