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

Mobile chrome iOS problem of scrolling to the very bottom of a long page, clicking to a new page that is shorter, and being already scrolled to the bottom. #164

Open
adamatronix opened this issue Jan 9, 2024 · 5 comments

Comments

@adamatronix
Copy link

Hi,

Been working on a site using your boilerplate, and noticed an edge case which occurs when you scroll to the very bottom of a page on Chrome iOS, and click to the next page already scrolled down. The new page must be shorter than the one you are coming from.

I mean to the very bottom, a few pixels above it will work fine. But this is very noticeable for a user clicking the footer links.

I'm still troubleshooting, but I can assume the bottom browser UI may be interfering with something.

I tried going with manual scrollRestoration and always setting the scroll to 0, however that still has the issue.

@adamatronix
Copy link
Author

Upon further observation it's when the chrome browser ui is hidden and the next page is shorter. You scroll a bit up to make the UI appear and it is fine.

@devenini
Copy link
Member

devenini commented Jan 9, 2024

Hey @adamatronix! Can you share a CodeSandbox or a link where the problem occurs? Thanks!

@adamatronix
Copy link
Author

adamatronix commented Jan 10, 2024

Hi,

Unfortunately my e-commerce site is still in development, but I was able to recreate the issue on some of your e-commerce work. Please see the following video capture:

RPReplay_Final1704858124.mp4

Note that Login is a shorter page than Home, and that it will work fine when I scroll up a bit to reveal the browser ui.

iOS 17.1.2
Chrome Version 120.0.6099.119

@devenini
Copy link
Member

@adamatronix I can't reproduce the issue, and I have both the iOS and Chrome versions that you have. Could it be a user preference preventing window.scrollTo from firing?

@git-ekuo
Copy link

I'm able to reproduce this issue as well on chrome + iOS. It seems a little intermittent. The issue occurs quite consistently when I click on a link while doing the scrolling down motion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants