v1.18.x
psychobunny 10 years ago
parent e461615c1a
commit 1dbfa65bc5

@ -207,8 +207,10 @@ define('navigator', ['forum/pagination', 'components'], function(pagination, com
navigator.scrollActive = true; navigator.scrollActive = true;
var done = false; var done = false;
function animateScroll() { function animateScroll() {
var scrollTop = (scrollTo.offset().top - ($(window).height() / 2) - offset) + 'px';
$('html, body').animate({ $('html, body').animate({
scrollTop: (scrollTo.offset().top - $('#header-menu').height() - offset) + 'px' scrollTop: scrollTop
}, duration, function() { }, duration, function() {
if (done) { if (done) {
return; return;

Loading…
Cancel
Save