-
Notifications
You must be signed in to change notification settings - Fork 169
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
Use overloaded AndroidView in MarkdownHelper #767
Conversation
…crolling with LazyColumn and images
The example you linked shows that reset should include |
I looked more into that example, and that The documentation says the callback "may be used to reset any transient View state like animations or user input.". I don't think that applies here? |
I'm sure its lazylist weirdness, might be worth trying to mess around with the markwon pictrs coil image sizes. |
Tsk, this is what we need but it's not available for LazyColumn yet https://issuetracker.google.com/issues/172029355 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure that this onReset will do anything, but I resolved the conflicts.
From what I've tested this mostly fixes #730. There's still a bit of a jerk upwards as the images loads in so it's not perfect, but it prevents the endless scroll downwards when hitting an image as shown in the issue.
I'm not entirely sure if anything needs to go in the
onReset
method, but it's noted in the Jetpack Compose documentation to use this overload with LazyColumns because the view can be reused during recomposition, so it may help with performance as well.device-2023-06-19-225611.webm