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

Scroll not working on mobile devices, only desktop #97

Open AyoCodess opened 2 years ago

AyoCodess commented 2 years ago

The scroll only works if you double tab. single tap scrolls to the top of the screen on mobile across all browsers.

https://css-tricks.com/annoying-mobile-double-tap-link-issue/ this solution did not work

CaliforniaLuv commented 2 years ago

That's right, I also found the bug after the belated release, so I used the damn jquery.

rafgraph commented 2 years ago

Scrolling on mobile works fine in the example app on latest iOS and Android https://react-router-hash-link.rafgraph.dev/ so my guess is it’s an edge case issue (or an issue with your code).

Please provide a failing example using code sandbox with steps required to reproduce. Thanks.