Was I right for leaving her?

I’ve currently broke up with my ex girlfriend due to our relationship being TOXIC.Im a very levelheaded 28yr old male that works day in and day out. I met her through my job and she gained my attraction through conversations me and her had. Although, she was in a domestic abuse relationship with a guy that was physically abusing her badly and had her sleeping in a car with him. She then broke up with him and then me and her started dating to where as though I gave her a place to stay which is my apartment to where as though her daughter can come over and have a place to feel comfortable and not detrimental. Over the time of me and her being together, things was fine until one night she got drunk and I’m fresh off of work tired watching a movie with her and her daughter. She said something to me, that ultimately I was trying to defuse but she ended up hitting me for no reason. (I also have monocular vision, so I can only see out of one eye) due to that I got angry out of disbelief that she would do that to me I started yelling at her asking her why did she do that to me. Which led to cops arresting me for just being angry at her. I got bailed out and have to deal with classes and sessions I shouldn’t take at all. Over more time, I’ve caught her talking to other dudes and getting Snapchat pics of other guys, but every time I got a call or text she assumes it’s another one of my gfs which I didn't really talk to nobody else. She says I’m abusive/narcs and I’ve never had any of my exes call me that before. To summarize the best suit of this topic, she hit me plenty of times, lied to me and lied on me.(where a guy at a bar was trying to fight me over her because supposedly she had a interview there at 10pm at night which we all know a job in that manner is unprofessional. Because she’s drunk there telling people I abused her, which never happened) says I’m the reason her friends/family don’t talk to her anymore and she hasn’t kept or had a job being with me for 1.5yrs.

Updates
3 mo
I do miss her and tried my best to be a good guy to her but gradually over time I felt like I was being taken advantage of, and in behind closed doors I was being abused, blood in my eye, blood in my nose, blood in my mouth. I can’t do this, I can’t do that, I can’t go hang out with my family or anything. I really need precise and caring details and some motivation.
Updates
3 mo
Also I’ve been called the hard ER words plenty of times, and she also hit my mother due to my mother trying to defuse our situations and be there for me as her son. When a lot of my family and friends told me to leave her alone. But she’ll come back crying saying she’s afraid to lose me.
Was I right for leaving her?
Post Opinion