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

Scroll State is lost while switching tabs #1119

Open
kasem-sm opened this issue Feb 8, 2024 · 0 comments
Open

Scroll State is lost while switching tabs #1119

kasem-sm opened this issue Feb 8, 2024 · 0 comments

Comments

@kasem-sm
Copy link

kasem-sm commented Feb 8, 2024

IMG_0554.MP4

Solution/Workaround: Decompose offers a list of all active child instances (stack.items, Returns the full stack of component configurations, ordered from tail to head). As per @arkivanov's suggestion, they should be stacked using ZStack, and every child should have a unique id modifier. Calling bringToFront will handle displaying the active instance on top.

As the screens are now stacked, each child should have a frame and background modifier so they don't appear to overlap each other. Perhaps @arkivanov may have some other solution.

However, this workaround results in a transparent navigation bar when scrolling the speakers list (which occurs after switching back to the Speakers tab from the Venue tab).

telegram-cloud-photo-size-5-6206378075621538409-y

If I get this transparent thing fixed, I will create a PR!

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

1 participant