Skip to content

Commit 1028b7a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 721201b commit 1028b7a

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
// Handle iOS bounce - scroll position can be negative during bounce
7474
const rawScrollPos = window.pageYOffset || document.documentElement.scrollTop;
7575
const currentScrollPos = Math.max(0, rawScrollPos);
76-
76+
7777
// Show navbar immediately if we're bouncing above the page (negative scroll)
7878
// or if we're very close to the top
7979
if (rawScrollPos <= 0 || currentScrollPos <= 50) {
@@ -132,13 +132,13 @@ document.addEventListener("DOMContentLoaded", function() {
132132

133133
// Additional safety check specifically for iOS bounce recovery
134134
let bounceCheckTimeout: any = null;
135-
135+
136136
window.addEventListener("scroll", function() {
137137
// Clear any existing timeout
138138
if (bounceCheckTimeout) {
139139
clearTimeout(bounceCheckTimeout);
140140
}
141-
141+
142142
// Set a timeout to check position after scroll momentum stops
143143
bounceCheckTimeout = setTimeout(() => {
144144
const finalScrollPos = Math.max(0, window.pageYOffset || document.documentElement.scrollTop);

0 commit comments

Comments
 (0)