Encountered a strange issue with the fixed header on my website under specific conditions:
- Using an iPhone 6+ in landscape mode.
- Using Safari with at least two tabs opened.
- The page has a fixed position header with html and body set to position: relative, height: 100%.
After the page loads, scrolling down works fine. The header remains in place and is displayed correctly in the web inspector:
https://i.sstatic.net/u11nd.jpg https://i.sstatic.net/Jqh6H.jpg
However, when you scroll up, pull the page down, and release, the header appears to be visible on the page but is actually shifted below the viewport (not highlighted in the web inspector).
https://i.sstatic.net/LQOdl.jpg
This causes all header elements to be inaccessible – menu, logo, contact button cannot be clicked.
The header returns to normal when:
- You scroll down (but breaks again when scrolling back up).
- Switching to another tab and returning.
- Closing other tabs.
I have tried adjusting the DOM and CSS of the header and body, but nothing seems to restore the header to its normal state. Any suggestions on how to fix this?