-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Android - Scrolling conversation is not smooth - Reported by: @parasharrajat #6491
Comments
Triggered auto assignment to @marcaaron ( |
@marcaaron Whoops! This issue is 2 days overdue. Let's get this updated quick! |
I don't quite understand this issue. Was this recently introduced as a regression? @parasharrajat does this happen if you want for the content to render? Or only when you immediately start to scroll back when opening a chat? |
Would a workaround be to wait for the content to render a bit before scrolling? |
Steps:
I can reproduce the same on the web as well. |
Sorry, I'm confused by the premise of the issue. If I wait for messages to load then I can scroll them fine. If you don't wait for them then you can only scroll as far as however many messages have rendered. That seems normal to me, but maybe I'm not understanding what the expected behavior should be here. |
Can you figure out if what you're experiencing was a regression? |
Unsure if there's anything actionable here so adding a planning label for now. |
I think the actionable items could be
|
Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Still overdue 6 days?! Let's take care of this! |
Not sure about the next steps here. @MelvinBot |
8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it! |
12 days overdue. Walking. Toward. The. Light... |
This issue has not been updated in over 14 days. eroding to Weekly issue. |
The reason for loading messages one by one when you scroll up is
VirtaulizedList#maxToRenderPerBatch (FlatList inherits those props) The "virtual window" only keeps a certain count of "screens" pre-rendered. Once you get near or reach the end it starts to add more items (to the top) and remove items from the other end. A This effect is observed only on 1 side of the list - the side where items are appended |
Related ticket: #2629
Possible improvements from changing the virtualization config:
|
I agree with @kidroca It's For better UX, we should eliminate the dead space as much as possible. |
Open to experimenting with these values to see if there are improvements for different platforms by tweaking them. IIRC the |
Just throwing something out there – I'm currently working on switching us from FlatList to RecyclerListView for the main chat component, so I don't think now is a good time to work on optimizing the FlatList implementation we have. |
OMG, It's used by Flipkart. I can say it would be fast undoubtedly. Awesome @roryabraham. Could you please tag me on the PR? I would like to observe the development and learn. |
Yeah, all my work has been local so far but I'll tag you in the PR. |
Just curious, but if we only just forked |
Even if we eventually give up on the FlatList, these tweaks |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
3 similar comments
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
5 similar comments
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
This issue has not been updated in over 15 days. eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
@isagoico, this Monthly task hasn't been acted upon in 6 weeks; closing. If you disagree, feel encouraged to reopen it -- but pick your least important issue to close instead. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Scrolling should be smooth.
Actual Result:
Scrolling is janky, history is not loaded at the same speed the user is scrolling creating the need to scroll several times to reach the desired message.
Workaround:
No need for workaround, the scrolling is working.
Platform:
Where is this issue occurring?
Version Number: 1.1.16-6
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screenrecorder-2021-11-25-11-38-26-925.mp4
Expensify/Expensify Issue URL:
Issue reported by: @parasharrajat
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1637820731002300
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: