Locals are used to gesturing and touching each other with their hands. They're easy to talk to on public transportation. You shouldn't react to such behavior, because Spaniards consider it normal.