Merge pull request #17 from Tarabass/gh-pages

IE - Fixed scrolling issue with navbar when scrolling up.
This commit is contained in:
David Miller
2016-02-08 14:23:23 -05:00
3 changed files with 29 additions and 28 deletions

1
.gitignore vendored
View File

@@ -1 +1,2 @@
node_modules node_modules
*.idea

View File

@@ -1021,7 +1021,7 @@ jQuery(document).ready(function($) {
} else { } else {
$('.navbar-custom').removeClass('is-visible is-fixed'); $('.navbar-custom').removeClass('is-visible is-fixed');
} }
} else { } else if (currentTop > this.previousTop) {
//if scrolling down... //if scrolling down...
$('.navbar-custom').removeClass('is-visible'); $('.navbar-custom').removeClass('is-visible');
if (currentTop > headerHeight && !$('.navbar-custom').hasClass('is-fixed')) $('.navbar-custom').addClass('is-fixed'); if (currentTop > headerHeight && !$('.navbar-custom').hasClass('is-fixed')) $('.navbar-custom').addClass('is-fixed');

File diff suppressed because one or more lines are too long