While masturbating, some men, and usually using lubricant, rub a spot on their penis that causes their leg to shake. Much like scratching a dog when getting scratched in the right way makes their leg shake.
John: Dude, I think the guy in the men's room was masturbating in the stall.
Adam: How do you know?
John: He had the jimmy leg goin and everything!