From f2154cde312b78ddf81bdaac2748d340778deccd Mon Sep 17 00:00:00 2001 From: alistair3149 Date: Mon, 28 Oct 2019 19:19:06 -0400 Subject: [PATCH] Removed top detection --- resources/scripts/header.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/scripts/header.js b/resources/scripts/header.js index 272222d1..1627f122 100644 --- a/resources/scripts/header.js +++ b/resources/scripts/header.js @@ -28,10 +28,7 @@ function hasScrolled() { if (Math.abs(lastScrollTop - st) <= delta) return; - // Remove class when header is back in place - if ($(document).scrollTop == 0) { - $('header').removeClass('nav-down'); - } else if (st > lastScrollTop && st > navbarHeight) { + if (st > lastScrollTop && st > navbarHeight) { // If scrolled down and past the navbar, add class .nav-up. // Scroll Down $('header').removeClass('nav-down').addClass('nav-up');