Merge pull request #64 from vapor/fix-active-scroll

fix active scroll
This commit is contained in:
Tanner 2016-10-24 16:42:05 -04:00 committed by GitHub
commit e87ed0d11f
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,11 @@
}
});
// scroll to the active nav item
$("nav .scroll").animate({
scrollTop: $("nav .active").offset().top - 157
}, 0);
// var lastScrollTop = 0;
// $(window).scroll(function(event){
// var st = $(this).scrollTop();