3 ms·
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 h
by dimal 4y ago
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.