infinity icon indicating copy to clipboard operation
infinity copied to clipboard

Viewport "Jumps" after scrolling stops

Open doronoded opened this issue 12 years ago • 2 comments

Hi, We are very impressed with the infinity.js library. We have encountered a problem when scrolling through a list of 100 items (similare to facebook's posts). For some reason after the scrolling stops, the posts are loaded to the DOM just fine, but the scroller position suddently "jumps" and shifts the feed about 200-500 pixels to the top (or bottom). I hope you understand what I mean. Do you know why this happens?

Thanks, Doron Oded

doronoded avatar Jan 28 '13 14:01 doronoded

If new elements are being appended, the scrollbar will readjust to reflect the new, larger size of the overall document. I'm not aware of any workaround for this that would get around the default behavior of scrolling.

DeaconDesperado avatar Apr 30 '13 19:04 DeaconDesperado

Same happens to me. Sometimes the calculated position is not right and the scroll position couldn't maintained after scrolling.

friedolinfoerder avatar Mar 08 '17 23:03 friedolinfoerder