She knows when her actions upset you. She knows you inside and out. That is why when you act detached she comes closer. She doesnt recognize your actions and is curious about whats going on. Watch the gorillas at the zoo sometime and you will see what I mean. lol. That is usually when she "tests you" to make sure she still has the control. By detaching you dont care either way and it takes away that power she has over your emotions. Until you dont have to "act" like you dont care she will keep on playing off of that.
By creating the physical distance you will make it a lot easier to detach.