|
|
When a user views a project, scrolls to the bottom of a project and clicks a new one, the browser should scroll back to the top and display the new project. However, this wasn't working for me in Safari (or iPhone).
After some digging around, I've found a solution in the jquery.corefunctions.js file.
Around line 33, you'll find this code:
success: function(data){
$("#load-content").show();
$('html').animate({scrollTop:0}, 200);
jQuery.latestLoad = id;
jQuery.contentInsert(data);
}
Simply change the following code from this:
$('html').animate({scrollTop:0}, 200);
to this:
$('html,body').animate({scrollTop:0}, 200);
Hope that helps.
|