Touching someone's thigh when they're presenting their poster at an academic conference is completely out of line. They have to be there to present their work to people, not get sexually harassed, and that's even ignoring his other behaviour. You probably shouldn't be flirting with people at a poster session anyway.