nostr:npub1acg6thl5psv62405rljzkj8spesceyfz2c32udakc2ak0dmvfeyse9p35c nice scroll optimization in gossip. may steal that.

Reply to this note

Please Login to reply.

Discussion

💜🫶🏻💜

Found your comment in an egui issue for long scrolling with variable height content. I think your approach might be best. Was experimenting with show_viewport but it’s a bit tricky.

Go for it.

The only thing I don't like about how gossip scrolls is when new messages come in above you, what you are looking at shifts. I think I can fix that though, I just haven't taken the time out to do it yet.

On damus I fixed this by just having an incoming queue of notes that don’t get pushed into the timeline unless it gets “flushed”. When you start scrolling notes are queued, only when you press the home button and scroll to the top do events get flushed.