A small child swinging his legs is not what I would call "anti-social". It's natural for them, and it takes time for little children to learn not to swing their legs in tight spaces.
Actually, an anti-social child probably would not swing his legs, along with not talking to anyone or expressing any emotion.