JQuery mobile - can I detect scrollstart on the page content rather than the document? -



JQuery mobile - can I detect scrollstart on the page content rather than the document? -

i trying observe scrollstart using jquery mobile, if utilize next works:

$(document).bind("scrollstart", function() { console.log("scroll start detected"); });

however logs every time entire page scrolled. want observe scroll on page content rather when whole page (document) scrolls.

i have tried various attempts follows:

$("#mycontent").bind("scrollstart", function() { console.log("scroll start detected"); }); $("#mypage").bind("scrollstart", function() { console.log("scroll start detected"); });

but nil seek seems work except using document. possible observe scrollstart on other document?

you must set selections in quotation:

$('#mycontent').bind("scrollstart", function() { console.log("scroll start detected"); }); $('#mypage').bind("scrollstart", function() { console.log("scroll start detected"); });

jquery jquery-mobile scroll document domdocument

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -