The Wrap behavior simply repositions an object to the opposite side of the layout or viewport if it leaves the area. It has no conditions, actions or expressions. The Wrap to property allows you to choose whether to wrap the object when it leaves the layout area, or when it leaves the visible viewport.
The object only wraps once it is fully outside the area, i.e. no part of its bounding box is in the layout or viewport area.