]> _ Git - fluidbook-v3.git/commitdiff
done #598 @0.5
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 Aug 2016 14:53:28 +0000 (14:53 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Tue, 30 Aug 2016 14:53:28 +0000 (14:53 +0000)
js/209-scrollify.js

index a341ff4665a07246164b6505fff8c26ab64bf0cd..3bba26fea8c164a8288657f9d9ab8812e808df82 100644 (file)
 
 
                     $(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]);
                     });
                 }
 
                     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, "-");