The act of a penis being caught in a trouser zip whilst masturbating.
Jimmy had to put it away in a hurry and got caught zanking.