mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-24 14:34:09 +00:00
Removed top detection
This commit is contained in:
parent
2c79e5c86b
commit
f2154cde31
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue