diff --git a/js/ditto.js b/js/ditto.js index d2d96cc..fa4a620 100644 --- a/js/ditto.js +++ b/js/ditto.js @@ -286,8 +286,10 @@ function router() { var sHeight = h - wh; $w.on('scroll', function() { + window.requestAnimationFrame(function(){ var perc = Math.max(0, Math.min(1, $w.scrollTop() / sHeight)); updateProgress(perc); + }); }); function updateProgress(perc) {