jquery - scrolling event not triggering Javascript -


$(window).scroll(function()         {             if($(window).scrolltop() == $(document).height() - $(window).height())             {                 alert('d');             }          }); 

is there wrong above code? wish infinite scrolling stuck in phase. no error in console wonder why. it's working in pure js, not in angularjs's controller.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -