How to properly implement continue where you left off (save/goto index) #156
Unanswered
marsilinou97
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to implement continue where you left off feature using masonic. On redner function seems to pass indexes including the overscanBy factor. I'm having an issue properly setting and using the value of the "last viewed" index. Seems the issue that I'm rendering images and the heights are not being calculated until the images are loaded causing wrong scrolling positions? Is there a way to handle this?
I tried to set the index to the
Math.floor(stopIndex / OVERSCAN_FACTOR);
In my on click handler:
scrollToIndex(getIdx(id));
Beta Was this translation helpful? Give feedback.
All reactions