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

Unexpected scroll position after Turbo drive visit #1165

Open
kevcha opened this issue Feb 6, 2024 · 0 comments
Open

Unexpected scroll position after Turbo drive visit #1165

kevcha opened this issue Feb 6, 2024 · 0 comments

Comments

@kevcha
Copy link

kevcha commented Feb 6, 2024

I'm facing a bug that happens on chrome based iOS browsers.
A basic CRUD app with only index and show pages is enough to reproduce.

I have a list of elements, and when clicking on some of it, the scroll position in the next page is set to bottom, as illustrated here :

RPReplay_Final1707226015.MP4

Deactivating Turbo drive solves the problem.

Note :

  • It does not happen when we click on a "top" element (first ~30). It seems that bug presence depends on y position of clicked element.
  • It does not happen neither if, after having scrolled down, we scroll up enough to make bottom bar of browser appear before clicking on element.

You can reproduce the bug by going to demo app, and you can find the demo app source code here

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

No branches or pull requests

1 participant