airbnb / infinity

UITableViews for the web (DEPRECATED)
http://airbnb.io/infinity/
Other
2.8k stars 281 forks source link

Viewport "Jumps" after scrolling stops #27

Open doronoded opened 11 years ago

doronoded commented 11 years ago

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

DeaconDesperado commented 11 years ago

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.

friedolinfoerder commented 7 years ago

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