Sticky position and page sections linking

Hi folks!

I have a strange issue with postition sticky. So, i have 5 100vh sections that have position sticky so they stack one on another (something like Each section has an id for in page linking so when you click on a link pages scrolls down to desired section. Issue is that scrolling to page section on link click works downward towards bottom of the page and not upward to top of the page. When i remove postion sticky it all works fine up and down but i lose that nice page scroll sticky effect.

Any ideas?

here is one example of same issue i found