I think the proper way to get the direction is through the velocity.

Relying on translation can cause a delay in catching the interaction.
Also related to Issue 9.
[ADDED] Cube animation
[BUG] Interaction issue in Cube navigation solved
A bit of tidy up
Merge pull request #15 from devangmundhra/master

Use velocity to get direction for a pan gesture.
Merge pull request #16 from junjie/master

Fixes bugs where cancelling an interactive presentation/dismissal causes...
Formatting fixes
Added documentation for the cube animation
Merge commit '3714bf76267c1b06e13630854cdd0d17d3d0fa58' into cardswithdirection
Silenced warning for 64-bit builds