This behavior is more complicated than you might think.

This article originally appeared on HuffPost.