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 device rotation, FeedView moves scroll position to a different offset #749

Open
boscojwho opened this issue Nov 5, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@boscojwho
Copy link
Contributor

Describe the bug
On device rotation, FeedView's scroll offset moves to a different offset:

  • Furthermore, this behaviour doesn't appear to be deterministic (i.e. it's appears unpredictable: on each rotation event, offset will move to a slightly different position than before).

Expected Behavior
On each rotation event from portrait to landscape, scroll view should return to its previous position (this is the behaviour in a simple setup).

Actual Behavior
On each rotation event, scroll view moves to a different offset that's unique to each event.

To Reproduce

  1. Open Feed view.
  2. Scroll down maybe 10 or 20 posts.
  3. Rotate device several times.

Mlem Information:
Latest TestFlight/dev builds.

Additional Context

  • In a simple setup, ScrollView+LazyVStack is able to "gracefully" handle device rotation events and keep scroll position intact.
  • Turning off the recompute size logic in CachedImage.onAppear doesn't fix issue.
@boscojwho boscojwho added the bug Something isn't working label Nov 5, 2023
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
Status: Todo
Development

No branches or pull requests

1 participant