C
C
Coder3212018-02-15 18:32:47
JavaScript
Coder321, 2018-02-15 18:32:47

How to properly implement infinite scroll up?

There is a list that can be endlessly scrolled up and down, implemented it down without a problem, and up, it works in principle, but there is a nuance. When the scrollbar is at the very top, the scroll event does not work, and in order to scroll and load the list, you have to scroll down a bit, and only then up. Maybe there are some options to solve this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2018-02-15
@Casufi

If this is an infinity scroll up, then make sure that the block is initially scrolled down a little.
https://developer.mozilla.org/en/docs/Web/API/Elem...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question