Generalize suppression of undesired default behaviors when dragging.

Fixes #1321.