From a27c7370d638c6ea199e0081fcad8d7f2a845a6e Mon Sep 17 00:00:00 2001 From: sovanna Date: Tue, 21 Jan 2020 12:24:57 +0100 Subject: [PATCH] fix(mobile/menu): Shows when scroll top --- templates/_base.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/templates/_base.html b/templates/_base.html index bddd781..7d451e1 100644 --- a/templates/_base.html +++ b/templates/_base.html @@ -218,6 +218,10 @@ var navbarSupportedContent = $('#navbarSupportedContent'); mywindow.scroll(function () { newscroll = mywindow.scrollTop(); + if (newscroll < 30) { + $('.container-header').stop().fadeIn(); + return; + } if (!navbarSupportedContent.hasClass('show')) { if (newscroll > (mypos + 0) && !up) { $('.container-header').stop().fadeOut();