currently sliding window for infinite scrolling is implemented on a side of the layout manager. It is like a snake (or a worm) that is growing towards its tail while its head is being continuously trimmed as tail grows. The tail could grow a bit faster, so snake is elongated, but eventually the trimmer cuts the head. At the end of the content, the tail is cut short, so snake is at its shortest. The same procedure repeats in reverse when scrolling back. This algorithm is complex and it feels like some physical paradigm could reflect it better than a handcoded algo. Ideas?
currently sliding window for infinite scrolling is implemented on a side of the layout manager. It is like a snake (or a worm) that is growing towards its tail while its head is being continuously trimmed as tail grows. The tail could grow a bit faster, so snake is elongated, but eventually the trimmer cuts the head. At the end of the content, the tail is cut short, so snake is at its shortest. The same procedure repeats in reverse when scrolling back. This algorithm is complex and it feels like some physical paradigm could reflect it better than a handcoded algo. Ideas?