Scroll function does not work - Chrome

Asked

Viewed 39 times

0

I have a feature that refreshes my page when scrolling and works normally in Chrome, but in some it doesn’t work.

var pagina = 1;
$(window).on("scroll", function () {
 if ($(window).scrollTop() + $(window).height() >= $(document).height()) {
     this.pagina += 1;
     carregarNegociosServidor(pagina);
 }
});

Could someone help me with this question?

Thank you very much

No answers

Browser other questions tagged

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