how to scroll a scroll from a div outside it

0

I have the following situation I have a screen where it has an infinity scroll up, so it works fine, I get the next record when using the scroll, the problem occurs when I try to use the mouse scroll outside the div. I would like it to work out too, similar to that of facebook the media that use the scroll off the timeline it lowers even so much off the timeline. does anyone know?

    
asked by anonymous 11.12.2017 / 15:50

1 answer

1

Place this code in the "root" (outside of other functions) of the code.

window.onscroll = function() {executaFuncaoAqui()};
    
11.12.2017 / 20:01