Better to be single than with someone who would throw away a serious relationship for some flings. At the very least be thankful she had the decency to end things with you first.
It's pretty likely that the relationship was dead for a while from her perspective. It's just that OP was blind to the signs.