Wandering Eye

What does the expression “wandering eye” mean?

Definition: a tendency to look at and desire women or men other than one’s committed romantic partner

Example: I know Sean has a wandering eye, but I’m sure he’s never cheated on me.