Fix to better handle single-tap touch events.

Should fix issue #1551.