jquery - slideToggle called twice in IE8 only -
i have footer slides up/down when page bottom reached, problem is called twice in ie8 reason.
can force called once per page scroll?
$(window).scroll(function() { if($(window).scrolltop() + $(window).height() == $(document).height()) { // $('.footer .open').click(); $('#page-footer').slidetoggle(); console.log('log'); } });
try hope you
$(window).unbind('scroll').scroll(function() { if($(window).scrolltop() + $(window).height() == $(document).height()) { // $('.footer .open').click(); $('#page-footer').slidetoggle(); console.log('log'); } });
Comments
Post a Comment