$(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, "-");