This is an assumption on my part, and may have other explanations. I’ve noticed sometimes the feed ‘jumps’ down a post while scrolling, and I’m assuming this is due to a background feed update combined with a sort order that puts a new item anove where I was currently scrolled to. If that’s the case, having an option for manual refresh only would be great.

If that’s not it, there might be a bug somewhere but it’ll be hard to find I guess, as it happens quite rarely.

  • CreatureSurvive@lemmy.worldM
    link
    fedilink
    arrow-up
    0
    ·
    6 months ago

    This isn’t so much to do with sorting and inserting posts above the current position, the posts are already loaded and displayed in order. The issue is due to loading previews (links, videos, images, etc). If the preview is not loaded in time for the cell to render it when it’s first displayed, then the cell is updated to adjust for the preview content. Usually this is not an issue because this typically happens off screen, or below the scroll position so the scroll position won’t jump.

    This definitely oversimplifies the behavior, as there are a lot of performance tweaks that happen behind the scene to attempt a guarantee that the cell will be sized properly, even if the content is not fully loaded in time, etc.

    Anyway, occasionally the previews will not load in time to properly size the cell while it is below the focal point of the screen, and it causes the onscreen content to jump down. I’m still working on a proper fix for this, as it is, I already prevent resizing cells if it is not yet visible, or already scrolled off screen.

    I’ll see if I can’t come up with something to improve this soon.