However...
However, if possible, it is recommended to repeat the tawaaf if one has moved outside the limits. DEPARTING FROM BOUNDS OF TAWAF Rule 302: If a person departs from the limits of tawaaf and enters the Holy Kaaba, the tawaaf is invalidated and it must be repeated. It is preferable that the tawaaf be first completed and then performed again if the departure took place after completion of half of the tawaaf.
Rule 303: If a pilgrim departs from the tawaaf to the ' Shadharwaan', the tawaaf becomes invalid to the extent of the departure. As a matter of caution, after making good the distance, he should complete the tawaaf and then repeat it. As a matter of caution, one should not, in the course of tawaaf, extend one's arm towards the ' Shadharwaan' or the wall of the Holy Kaaba to touch a corner or whatsoever.
Rule 304: If a pilgrim enters Hijr Ismail in the course of a tawaaf, by oversight or out of ignorance, the round in which this occurs is invalid and there is no option but to repeat it and it is better to repeat after completion of the entire tawaaf: The same rule applies, as a matter of caution, to walking on the wall of the Hijr and a pilgrim in the course of tawaaf must not touch the wall of the Hijr either.
Rule 305: If, without good reason, a pilgrim in the course of a tawaaf departs from it to the outside before completing the fourth round, the tawaaf is invalid and has to be repeated. If it was after completing the fourth round, as a matter of caution, the tawaaf must be completed and then repeated. However, if the tawaaf was optional, he may complete the remainder provided that he does not break the sequence.
Rule 306: If menstruation of a lady commences in the course of a tawaaf, it is obligatory on her to depart from it and the Masjid-ul-Haraam immediately. The Rule that would then apply to her has already been discussed in the Condition for tawaaf above.
Rule 307: It is permissible for a pilgrim performing tawaaf to depart from it in order to visit a sick person or to attend to his own matter or that of a brother in faith, and if the tawaaf was obligatory and he had completed the fourth round, his tawaaf is valid. However, if he leaves before completing the fourth round, his tawaaf is invalidated. If the tawaaf was a recommended one, he can continue from where he stopped, even though he had not completed four rounds.