Disgusting or socially ill-mannered, yes. Legally, this is battery - intentional touching of someone without their permission in a way that is commonly thought offensive. I suppose the teacher could file a complaint, although I'm not sure there are provable injuries or damages. Might be a nice lesson in tort law, though...