how to roll a scroll of a div out of it

Asked

Viewed 55 times

0

I have the following situation I have a screen where there is an Infinity scroll so far everything well it works normal catching the next record when using the scroll, the problem occurs when I try to use the scroll of the mouse outside the div. I would like it to work also off, similar to the facebook mediated that I use the scroll off Timeline it lowers even so much off Timeline. someone knows?

1 answer

1


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

window.onscroll = function() {executaFuncaoAqui()};
  • Makes sense I’ll try here

  • Thanks @Luiz Felipe Nalin Borges was that I put my code that calls the next records within this event and it worked.

  • wonder! Happy to have helped

Browser other questions tagged

You are not signed in. Login or sign up in order to post.