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
    2
    ·
    8 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.

    • daveOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      I think I saw a note in the last change log about this—apologies if I mis-remembered. Just wanted to say I think it’s still happening, and I just saw what I think is the clearest example.

      I’d scrolled to a point where the top few pixels, perhaps the top line of text, was visible on a post at the bottom of the screen. That post contained a link, and as I was looking at the post above the whole feed jumped ‘up’ and the barely visible bottom post was in the view. I guess this fits with what you’d said about that post changing size when its content became available after previous the link.

      Hopefully you can find a way for the top of that post on screen to be anchored so the feed moves ‘down’ instead of ‘up’… :)

    • daveOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      7 months ago

      And I don’t know if it’s useful but I often find the ‘jumping’ is pretty transient—it will happen once but then scrolling up and down over that section is smooth.

      However I just found this post whose comments are full of images, and this one jumps pretty consistently for me—thought it may help as a test case if you didn’t already have one :)

      https://feddit.uk/post/11886380