Example: http://bit.ly/LWZv42
Coding a one page layout with animated scroll for Nav. Everything works perfect in desktop, but on the iPad you simply can't go back and forth by clicking the nav li links. I noticed though if you click a nav link then scroll a little down/up the page it will work.
function init_siteNav(){
function goToByScroll(id){
$('html,body').animate({scrollTop: $(id).offset().top},'slow');
}
$('.siteMenu li.home a').click(function(){
goToByScroll('body');
return false;
});
$('.siteMenu li.clients a').click(function(){
goToByScroll('#portfolioWrap');
return false;
});
$('.siteMenu li.contact a').click(function(){
goToByScroll('#contactMapHolder');
return false;
});
}
Any suggestions?