Works very bad when I try to use handleLink to define scrollTop position, if removed all works well.
But problem is that I have sticky nav at top and want to calculate my own offset.
If I add offset as data-attribute to each section then also all works fine, so I'm not sure is there something wrong with my code or what..
Works very bad when I try to use handleLink to define scrollTop position, if removed all works well. But problem is that I have sticky nav at top and want to calculate my own offset. If I add offset as data-attribute to each section then also all works fine, so I'm not sure is there something wrong with my code or what..
It just scrolls to random parts of page.