rafgraph / react-router-hash-link

Hash link scroll functionality for React Router
https://react-router-hash-link.rafgraph.dev
MIT License
732 stars 62 forks source link

Strange offset on mobile #64

Closed lloydrhodes87 closed 4 years ago

lloydrhodes87 commented 4 years ago

Does anyone else have problems on mobile? On desktop its working great but on mobile its giving me an offset that it sometimes over 100vh away from my anchor tag.

The site im developing is

https://ingrid-voice.netlify.app/

you can recreate the issue by opening devtools in chrome and going on iphone 5 or 7. go to home page and click a link in the portfolio section. This takes you to audio page and an anchor link. On desktop works but on mobile anchor is not at top of screen.

Any ideas? Thanks