Merge branch 'development' of https://github.com/prateek-webkul/bagisto into development
This commit is contained in:
commit
558b416bb6
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue