Use velocity to get direction for a pan gesture.

Relying on translation to be > 0 can cause a delay in catching the interaction.
Also related to Issue 9.