jscroll icon indicating copy to clipboard operation
jscroll copied to clipboard

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

Open mhluzi opened this issue 7 years ago • 0 comments
trafficstars

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.

mhluzi avatar Aug 01 '18 16:08 mhluzi