touch pageup and pagedown

two fingers down one above the other and then release either and then press it back down again and it should page turn in that direction

by Darby Rathbone

HTML

<h1>A Leela of Her Own</h1>

<p>No! I want to live! There are still too many things I don't own! I barely knew Philip, but as a clergyman I have no problem telling his most intimate friends all about him. Say it in Russian! Bender, we're trying our best. Is that a cooking show?</p>

<h2>Anthology of Interest I</h2>

<p>Bender, hurry! This fuel's expensive! Also, we're dying! And when we woke up, we had these bodies. Bite my shiny metal ass. All I want is to be a monkey of moderate intelligence who wears a suit&hellip; that's why I'm transferring to business school! I had more, but you go ahead.</p>
<ul>
    <li>We'll need to have a look inside you with this camera.</li>
    <li>Man, I'm sore all over. I feel like I just went ten rounds with mighty Thor.</li>
    <li>Spare me your space age technobabble, Attila the Hun!</li>
</ul>

<h3>Anthology of Interest I</h3>

<p>But I've never been to the moon! If rubbin' frozen dirt in your crotch is wrong, hey I don't wanna be right. I didn't ask for a completely reasonable excuse! I asked you to get busy!</p>

<h4>Fry and the Slurm Factory</h4>

<p>Whoa a real live robot; or is that some kind of cheesy New Year's costume? Negative, bossy meat creature! They're like sex, except I'm having them! Of all the friends I've had&hellip; you're the first.</p>
<ol>
    <li>File not found.</li>
    <li>Oh, how I wish I could believe or understand that! There's only one reasonable course of action now: kill Flexo!</li>
    <li>Guess again.</li>
</ol>

<h5>Attack of the Killer App</h5>

<p>I'm Santa Claus! Your best is an idiot! The alien mothership is in orbit here. If we can hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate. Our love isn't any different from yours, except it's hotter, because I'm involved.</p>

<h6>Obsoletely Fabulous</h6>

<p>THE BIG BRAIN AM WINNING AGAIN! I AM THE GREETEST! NOW I AM LEAVING EARTH, FOR NO RAISEN! Okay, it's 500 dollars, you have no choice of carrier, the...

JavaScript

// to use this on a touch device you put two fingers down quickly and tap either up or down for page up and page down.. zoom cannot work while this is setup 

var preventer;
var touchStartTimes = [];
var fingerTime = 300; //in ms
var preventDefaults;
var scrollPosition = 0;
var touchFunctions = {
    start: function (e) {

        var twoTouches = function () {

            //      console.dir(e.touches);
            if (e.touches.length === 2) {
                //e.preventDefault()
                prevent = true;
                if (e.changedTouches[0].screenY < [].slice.call(e.touches).filter(function (f) {
                    return f.identifier !== e.changedTouches[0].identifier;
                })[0].screenY) {
                    //  console.log(e);
                    scrollPosition = document.body.scrollTop - window.innerHeight;
                    //              console.log(scrollPosition);
                    smoothScroll();
                } else {
                    scrollPosition = document.body.scrollTop + window.innerHeight;
                    //            console.log(scrollPosition);
                    smoothScroll();
                }
            }
        };
        if (preventer) {
            preventDefaults();
        }
        preventer = function preventer(g) {
            g.preventDefault();
            e.preventDefault();
            twoTouches();
        };
        addEventListener('touchstart', preventer, true);
        preventDefaults = function () {
            removeEventListener('touchstart', preventer, true);
        };
        // setTimeout(preventDefaults,fingerTime);
        /*
        
        this is where i would want to prevent default for the event if Date.now() < e.timeStamp+fingerTime  if the event is fired again.
        var prevent = false;
        twoTouches();
        console.log(e);
        
        if(prevent)
             e.preventDefault();
//        twoTouches();
*/
    },
    end: function (e) {
       ...