File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ document.addEventListener("DOMContentLoaded", function() {
7373 const currentScrollPos = Math.max(0, window.pageYOffset || document.documentElement.scrollTop);
7474 const documentHeight = document.documentElement.scrollHeight;
7575 const windowHeight = window.innerHeight;
76-
76+
7777 // Don't hide navbar when at the very top - increased threshold for reliability
7878 if (currentScrollPos <= 20) {
7979 if (!isVisible) {
@@ -118,7 +118,7 @@ document.addEventListener("DOMContentLoaded", function() {
118118
119119 // Additional polling check when near the top (for edge cases)
120120 let topCheckInterval: any = null;
121-
121+
122122 function startTopCheck() {
123123 if (topCheckInterval) return;
124124 topCheckInterval = setInterval(() => {
@@ -140,7 +140,7 @@ document.addEventListener("DOMContentLoaded", function() {
140140 requestAnimationFrame(updateNavbar);
141141 ticking = true;
142142 }
143-
143+
144144 // Start polling when we're in the danger zone
145145 const currentScrollPos = Math.max(0, window.pageYOffset || document.documentElement.scrollTop);
146146 if (currentScrollPos <= 100) {
You can’t perform that action at this time.
0 commit comments