Is it cheating?

I was talking about the issue generally. How would you know that someone…hubby/wife/partner is fantasizing or “mentally cheating” (people have different standards for cheating) when few would admit to it.