My dad accidentally tried to kiss me [F20]

Sorry I didn’t know where to ask for advice!

My parents are going through a divorce and my dad isn’t doing well throughout it. He keeps acting like I’m a friend and not his daughter. He makes inappropriate and gross jokes when he’s high/drunk. He just went on a week long trip and I stayed up till he got home. We hugged and I looked up at him to see his beard because he shaved it and he looked down and tried to kiss me. I turned my head to the side to avoid it and he apologized as though it was on accident. I’m worried he sees me as my moms fill in since I’ve had to take over what she usually does since he wanted the house. It’s stressing me out because he keeps doing/saying things that make me a big uncomfortable. He’s a great dad otherwise.