scroll: function()

in script/smooth.js [86:98]


        scroll: function (d) {
            var a = Scroller.scrollTop();
            if (d > a) { // going down
                a += Math.ceil((d - a) / Scroller.speed);
            } else {     // going up
                a = a + (d - a) / Scroller.speed;
            }
            window.scrollTo(0, a);
            if (a === d || Scroller.offsetTop === a) {
                clearInterval(Scroller.interval);
            }
            Scroller.offsetTop = a;
        },