From f2def6c4bc5814cb914da5ea196e7486b89b84f6 Mon Sep 17 00:00:00 2001 From: prateek srivastava Date: Tue, 9 Apr 2019 19:28:44 +0530 Subject: [PATCH] scroller issue fixed --- packages/Webkul/Admin/src/Resources/assets/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/Webkul/Admin/src/Resources/assets/js/app.js b/packages/Webkul/Admin/src/Resources/assets/js/app.js index 9235fe478..c44f956ed 100755 --- a/packages/Webkul/Admin/src/Resources/assets/js/app.js +++ b/packages/Webkul/Admin/src/Resources/assets/js/app.js @@ -40,14 +40,18 @@ 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'); scrollTopValueWhenNavBarFixed = $(document).scrollTop();