From: vincent@cubedesigners.com Date: Tue, 30 Aug 2016 14:53:28 +0000 (+0000) Subject: done #598 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=321fd09ca11a24a4fb634bd2294d9e34f18d8587;p=fluidbook-v3.git done #598 @0.5 --- diff --git a/js/209-scrollify.js b/js/209-scrollify.js index a341ff4..3bba26f 100644 --- a/js/209-scrollify.js +++ b/js/209-scrollify.js @@ -164,9 +164,10 @@ $(settings.target).stop().animate({ - scrollTop: heights[index], skipGSAP: true + scrollTop: heights[index] }, settings.scrollSpeed, settings.easing, function () { $(window).scrollTop(heights[index]); + console.log(heights[index]); }); } @@ -635,7 +636,7 @@ heights[i] = Math.round($(this).offset().top) + settings.offset; } else { // heights[i] = parseInt($(this).offset().top); - heights[i] = Math.round($(this).offset().top) + 1; + heights[i] = Math.round($(this).offset().top); } if (settings.sectionName && $(this).data(settings.sectionName)) { names[i] = "#" + $(this).data(settings.sectionName).replace(/ /g, "-");