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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -