Detect touch scroll up or down
<p>I need code same this for touch devices . help me please</p>

<pre><code>$(window).on('DOMMouseScroll mousewheel', function (e) {
    if (ScrollEnable) {
        if (e.originalEvent.detail &gt; 0 || e.originalEvent.wheelDelta &lt; 0) {
            console.log('Down');
        } else {
            console.log('Up');
        }
    }
    return false;
});
</code></pre>

<p>and here is my touch code, But consul just take up i need find down for my website ! what can i do :|</p>

<pre><code>$('body').on({
    'touchmove': function(e) {
        if (e.originalEvent.touches &gt; 0 || e.originalEvent.touches &gt; 0) {
            console.log('Down');
        } else {
            console.log('Up');
        }
    }
});
</code></pre>