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 // 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);
You can’t perform that action at this time.
0 commit comments