Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On mobile, scrolling down on a page and then returning to the home page locks the view in the wrong scrolling location #39

Open
christopherhafke opened this issue Feb 18, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@christopherhafke
Copy link
Collaborator

christopherhafke commented Feb 18, 2020

This happens on Safari on iOS, but I have been unable to reproduce it (for the purposes of debugging) on Chrome or Safari on Mac.

A solution might simply be to change Home by changing componentDidMount

componentDidMount() { window.scroll({ top: 0, left: 0, behavior: 'smooth' }); $("body").css("overflow", "hidden"); }

although it is unclear if this fixes the problem, on account of the reproducibility failure on desktop.

@KindaOK
Copy link
Collaborator

KindaOK commented Jan 18, 2022

Whoops somehow auto closed it. Can't replicate, need to find a victim with an iPhone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants