What is it called when someone gets mad at you for being mad at them?

What is it called when someone gets mad at you for being mad at them? It’s called projection, as in projecting their feelings and thoughts onto you. For example, someone who is angry but won’t take responsibility for it might accuse you of being angry with them. It might be as subtle as, ‘Are you okay with me?

It’s called projection, as in projecting their feelings and thoughts onto you. For example, someone who is angry but won’t take responsibility for it might accuse you of being angry with them. It might be as subtle as, ‘Are you okay with me?