Scrollify
Scrollify copied to clipboard
First section ignores offset
First time using scrollify. I have a page with a border around it and each section is meant to start 24px from top of page so it starts below the border. Without scrollify my CSS does this fine. Once I implement scrollify, even with the correct offset option, the page is always scrolled so that the top of this first section is right at the top of the page. Once I start scrolling to lower sections, they are respecting the offset and aligning properly. It seems the offset options is ignored for the first section?
same here when offset is negative, it doesn't snap to first section correctly…
for now, I imported jquery.scrollify.js
locally so I can mess with it and I added
destination = (!index) ? 0 : heights[index];
on line 117
and that fixed this issue