Scrollify icon indicating copy to clipboard operation
Scrollify copied to clipboard

First section ignores offset

Open beneklisefski opened this issue 7 years ago • 2 comments

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?

beneklisefski avatar Sep 12 '17 23:09 beneklisefski

same here when offset is negative, it doesn't snap to first section correctly…

gregmatys avatar Mar 07 '18 16:03 gregmatys

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

SpeakInCode avatar Mar 12 '19 15:03 SpeakInCode