Notes on page scroll event is invalid

When more than one page will return to the top of the needs, sometimes bizarre happens, is obviously the page scroll several pages, but not detected srcoll event.

In the case of the internal elements of the element exceed the height of the listener listens element. Special mention is that even if the use of window to listen, once the internal situation outside the body height arise does not work, as an element of interior height settings 100vh would not detect the scroll event.

Reference article:

Guess you like

Origin www.cnblogs.com/zhourongcode/p/11456532.html