Vertical swipe in hammer.js
<p>I am using hammer.js to reset my timer when the user performs an action on their touch device. This works fine with tap, press and horizontal swipe, but how can I get it to recognise vertical swiping? </p>

<pre><code>$(function () { 
    var page = document.getElementById("parent"); 

    Hammer(page).on("swipe", function () { 
        idleTime = 0; 
    }); 

    Hammer(page).on("tap", function () { 
        idleTime = 0; 
    }); 

    Hammer(page).on("press", function () { 
       idleTime = 0; 
    }); 

}) 
</code></pre>