mirror of https://github.com/vapor/docs.git
fix active scroll
This commit is contained in:
parent
3976f10816
commit
059281b8f5
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue