Emily Blunt and Tom Cruise are friends and colleagues who know each other very well. If she'd just met him and was touching him like that it would be different, but they clearly have a friendly relationship.
Sandler and Foy don't know each other, she looked uncomfortable, and he continued touching her even though she pushed him away.
It's a totally different thing.