moxin-org / moxin

Moxin: an AI LLM platform in pure Rust
https://www.moxin.app
Apache License 2.0
122 stars 17 forks source link

Fix jump to bottom flicker #145

Closed noxware closed 3 weeks ago

noxware commented 3 weeks ago

Problem

When you try to scroll further than the maximum possible amount, the jump to bottom button flickers.

https://github.com/moxin-org/moxin/assets/7684329/01148994-fe77-4947-b8bf-e0b84f7edc9f

Changes

Detect if the end of the list has been reached in a different way. By telling the portal list to render one more item, and when the portal list renders that, flag that the portal list reached the end.