framework7 - How to apply if an element is visible scrolling? -


how apply if element visible scrolling? event scroll not

this code

$$(document).on('scroll', '.page-content', function() {     console.log('scroll'); }); 

but scroll event not work

in framework7 if want detect scrolling on page content need add scroll event on particular div.

<div class="page-content index-page-content"></div> 

on div page-content class important.so js should be

$$('.index-page-content').on('scroll',function(e){console.log("scroll happened");}); 

try one.it work.hope helps


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo