Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.jscroll triggered when anywhere on page is scrolled - not restricted to div #155

Open
mhluzi opened this issue Aug 1, 2018 · 0 comments

Comments

@mhluzi
Copy link

mhluzi commented Aug 1, 2018

Hi there

I am using this as an example:
https://laraget.com/blog/implementing-infinite-scroll-pagination-using-laravel-and-jscroll

On my side I have a div that I want to implement infinite scrolling on. The code load from the article above works but the jscroll event is fired no matter where scrolling occurs on the page.

Is there a way to restrict the jscroll event to only fire when the div in question is scrolled?

I have set "contentSelector: 'div.infinite-scroll'," but that doesn't do what I had thought it would do ( as in only trigger jscroll when that div is scrolled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant