This might be a very peculiar question, and I know you all love peculiar questions (hahaha). I'm sure there's an idiom for this but I can't really remember which.
Let's say you're walking on a very narrow sidewalk, and there's someone coming opposite you, when both of you meet each other, one of you has to step aside and give the other person some room so that the other person can come by you and continue walking, right? Now say you went either way and you end up going to the same direction the person went and you kept moving trying to give this person some room, but they kept moving to the same side and both of you end up dancing with each other. What do you call that? I swear to God there's an idiom for this!!! It has something to do with the word "dancing" but I can't remember it!