There could me many explanations for why they act that way, one being it's not on purpose. They have convinced themselves leaving us is the right decision so they dont want to do feel anything that goes against that feeling. They get conformable around us and might open up a tiny bit without realixing it. Then, they realize that fact and even worse they realize you might see it also. So they backtrack to put both parties in their place.
It's important for you not to react negatively when she pulls back and not too happy when she draws closer.
I've actually had this happen to me also around W lately. I was becoming comfortable around her and letting down my guard a bit, showing her I cared about her and a little too much. I felt like she might notice also so my reaction was to pull back some.
Neither of us want to put ourselves in too much of a vulnerable position and when we realize we are from the draw of the other we backoff.
Accept what is, let go of what was, and have faith in what will be