From 321fd09ca11a24a4fb634bd2294d9e34f18d8587 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 30 Aug 2016 14:53:28 +0000 Subject: [PATCH] done #598 @0.5 --- js/209-scrollify.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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, "-"); -- 2.39.5