Cheating vs flirting

Me & my sons father & BF for almost 5 yrs broke up. The reason we broke up is bc one of the girls he cheated on me w. Went back to him running her mouth about stuff that I did at work. She told him that I flirted with people & gave out my number. I admit I did a little flirting here & there. But the entire time, literally, he was unfaithful & cheating on me with different girls. Even before I had a job he was unfaithful. And now I'm the one being blamed for the break up. Am I the one in the wrong?