From 059281b8f572484d3bff667acb3f3764186ec71f Mon Sep 17 00:00:00 2001 From: Tanner Nelson Date: Mon, 24 Oct 2016 16:41:25 -0400 Subject: [PATCH] fix active scroll --- template/default.twig | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/template/default.twig b/template/default.twig index a6cdf854..b5d91911 100644 --- a/template/default.twig +++ b/template/default.twig @@ -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();