I had the same problem with my cat Sammy. Everytime she would sit in that position we would spray her with a water bottle. And we used the water bottle to train her to behave as well. It really worked. She understood that if she was going to pee to pee in the litter box not in my bed or lap.