Re:Infinite Scrolling: When to Use It, When to Avoid It
by dimal on Saturday September 10, 2022 @01:37PM
(#32792763)
It is possible to implement infinite scrolling and maintain the scrollbar height if you know the full number of results you’re going to scroll through and the height of each element (both of which are usually knowable). You simply set the scroller div to elementCount * numElements regardless of the number of elements. Most libraries that provide infinite scrolling do this.
[ Parent
| on HN ]
There are no comments on this comment yet.