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

c# - MSAA finds controls UI Automation doesn't -

python - mat is not a numerical tuple : openCV error -

wordpress - .htaccess: RewriteRule: bad flag delimiters -