Skip to content

Commit 7d6083d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 0a5c624 commit 7d6083d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/Header.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)