Merge branch 'development' of https://github.com/prateek-webkul/bagisto into development

This commit is contained in:
prateek srivastava 2019-04-16 19:22:03 +05:30
commit 558b416bb6
1 changed files with 4 additions and 0 deletions

View File

@ -39,15 +39,19 @@ window.onload = function () {
if (menubarHeight > windowHeight) {
$(document).scroll(function() {
documentScrollWhenScrolled = $(document).scrollTop();
if (documentScrollWhenScrolled <= differenceInHeight + 70) {
$('.navbar-left').css('top', -documentScrollWhenScrolled + 60 + 'px');
scrollTopValueWhenNavBarFixed = $(document).scrollTop();
} else {
$('.navbar-left').css('top', -(differenceInHeight + moveDistance) + 'px');
}
});
} else if (menubarHeight < windowHeight) {
$(document).scroll(function() {
documentScrollWhenScrolled = $(document).scrollTop();
if (documentScrollWhenScrolled <= differenceInHeight + 70) {
$('.navbar-left').css('top', -documentScrollWhenScrolled + 60 + 'px');