Is there a way to make a scrollable infinite list that loops back to the first item?
Closed this issue ยท 1 comments
Abdalrahman-Amin commented
Is there a way to make a scrollable infinite list that loops back to the first item?
Hi ๐,
I want to create a scrollable list that behaves infinitely, meaning:
- When I reach the last item, the first item should appear immediately after it.
- When I reach the first item, the last item should appear before it.
- This should create a seamless looping effect in both directions.
Is there a built-in way to achieve this, or do I need to handle it manually?
If it needs to be done manually, could you provide an example implementation?
Thanks! ๐
predikament commented
Hello @Abdalrahman-Amin, thanks for reaching out.
This is related to how your data is managed, f.ex. through virtualization, which is not in the scope of this library.
There is nothing in the library however that should restrict you from implementing on handling this.
If you do happen to create a solution example which you think could be useful to share with the the community however, then please feel free to share it.
Thanks and happy coding!