Skip to content

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

@mhluzi

Description

@mhluzi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions