Remember Position Inquiry for Infinite Scroll.

I will take a closer look at this soon.

Wait! Normaly you have already everything you need to achieve your aim.
The CONSOLE-LOGs shows you some changements on viewport-enter-events.
That’s the key!

You already are able to switch PAGES (START-PAGE,2,3,4) using → currentPageIndex

 console.log(currentPageIndex)

Now what you need is to load the current page again at its last state/position.
How to do? See here…

And all your last positions are saved in the wix-local-storage!

local.setItem("PageIndex", currentPageIndex);

So you just have to get the VALUE back out of that local-storage.

local.getItem("PageIndex");

When page loads!

Good luck!