Skip to content
This repository has been archived by the owner on Oct 19, 2018. It is now read-only.

Viewport "Jumps" after scrolling stops #27

Open
doronoded opened this issue Jan 28, 2013 · 2 comments
Open

Viewport "Jumps" after scrolling stops #27

doronoded opened this issue Jan 28, 2013 · 2 comments

Comments

@doronoded
Copy link

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
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants