scroll fix

v1.18.x
Baris Soner Usakli 11 years ago
parent cd9bd91ab2
commit 7c49c32ad3

@ -1055,7 +1055,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
offset = 0;
}
if($('#post_anchor_' + pid).length) {
return scrollToPid(pid);
}
@ -1093,8 +1092,8 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
tid = $('#post-container').attr('data-tid');
function animateScroll() {
$('window,html').animate({
scrollTop: scrollTo.offset().top - $('#header-menu').height() - offset
$("html, body").animate({
scrollTop: (scrollTo.offset().top - $('#header-menu').height() - offset) + "px"
}, duration !== undefined ? duration : 400, function() {
updateHeader();
});

Loading…
Cancel
Save