mirror of
https://github.com/immich-app/immich.git
synced 2025-11-22 14:33:21 -05:00
The current behaviour will intersect if the page is scrolled about 90% down which works okay for a small number of assets, but does not scale well with large amounts of assets. Instead of relying in proportional values, it may be more sensible to use a consistent measure for loading more pages. A simple and sensible suggestion may be to load another page when there is only one more viewport worth of assets to display. It can be refined and revisited in future, but it seems to work relatively well in my testing and prevents the issues which occur with large amounts of assets. Co-authored-by: Alex <alex.tran1502@gmail.com>