During public events, it is perfectly acceptable for Secret Service agents to approach crowd members and yank their hands out of their pockets to confirm they are not hiding weapons.
It is strictly against policy for Secret Service agents to touch members of the crowd at public events.