-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Chat scrolls after opening for the 2nd time reported by @thesahindia #12363
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Triggered auto assignment to @techievivek ( |
Just tested this, and there are 2 scenarios here:
I am not entirely sure what the expected behaviour is here, so I will ask for help from the team. |
Not overdue, I have started a discussion on slack. But IMO we can fix the Android scrolling behaviour. |
We would like to fix the jumping/drifting effect on Android when one re-opens the chat. Look at the video in the issue description to understand what needs to be fixed. |
Triggered auto assignment to @slafortune ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Current assignee @techievivek is eligible for the External assigner, not assigning anyone new. |
Looking for a proposal on this one. |
@slafortune, @parasharrajat, @techievivek Whoops! This issue is 2 days overdue. Let's get this updated quick! |
This seems to be happening only on android(native) and not on any other platform. I did invest some time looking into it but couldn't find a solid fix. Not sure how worthy it will be to look more into it, but if you suggest, we can leave it open for proposals or share it internally for someone to have a look. Do let me know what you think. Thanks |
@techievivek Ah, my bad. I was checking the code on the main branch and was searching for it. I will take a look at the android implementation. In the meantime, I tried to remove the |
It fixes the issue when we remove the property Could you try looking into native code and see if you find something?
I stumbled upon the same question because I am not able to visualize what these properties do. |
I have looked into the native code and still can't find the reason why adding I believe the property @roryabraham want to keep is the So, if we want to have a simple solution in the meantime while waiting for the WishList to be published, we can remove the |
159 int currentScroll = mHorizontal ? mScrollView.getScrollX() : mScrollView.getScrollY(); 160 for (int i = mConfig.minIndexForVisible; i < contentView.getChildCount(); i++) { 161 View child = contentView.getChildAt(i); 162 float position = mHorizontal ? child.getX() : child.getY(); 163 if (position > currentScroll || i == contentView.getChildCount() - 1) { My observation After debugging maintainvisiblecontentposition.java it is understood that Program runs in this pattern
After Line 161 execution instead of moving to line 162, loop breaks and again start from 159. Then to 160 this time i is not zero but one, then loop runs and breaks at condition is satisfied. This states that computeTarget runs 2 time before condition is satisfied. NB: correction need in this line if (position > = currentScroll || i == contentView.getChildCount() - 1) { |
@techievivek Let's remove the hold and see if we can find a reasonable way to solve this ahead of WishList. That's a pretty far out solution. |
Interesting point, so there is no use in having the property set here; in fact it has some undesirable side effects. Could it be that @parasharrajat Any thoughts here? |
@techievivek can you confirm what happened from here in the issue? At more than 4 weeks old we expect it to stay internal for someone to champion. It's currently in limbo as neither internal or external. Can you bring a summary to Slack for a discussion? If you haven't got the bandwidth for it anymore with the navigation reboot project, let's source an internal volunteer to carry the torch forward. Thanks! |
This comment was marked as off-topic.
This comment was marked as off-topic.
@parasharrajat Can you please have a look at the comment put by @bernhardoj here? I would vote we can use that as the solution given it doesn't break anything(which seems like the case here). Though this might be a temporary fix here if we are migrating to WishList in future then the problem will automatically be solved. But we are also happy to involve Margelo to look into the android implementation for the Let me know what you think about it. |
I will check it today. I am facing 403 issues which is giving me a hard time for 4 days. |
@parasharrajat did you not get whitelisted yet? 😕 Please bring this to Slack if not! |
No, I requested with my latest IP again. |
Not overdue, waiting for Rajat to share his views on the proposed solution and my comment here. |
I think this is okay. Normally we would opt to go for an upstream fix, but realistically we would need help from @janicduplessis to figure that out, and right now I think we'd rather see him dedicate his time to Margelo's incoming replacement for React Native's FlatList. |
I agree with that. I think this is a totally valid case to go for the simple solution. |
We have decided to close this bug because it appears to be minor and only affects the Android build. Additionally, fixing it would require diving into the native side of the code, which we are not currently interested in exploring as we have more pressing issues and improvements to work on, so we would like to allocate our resources to those tasks. We hope this bug will be automatically resolved when we migrate to Maregelo's next-gen FlatList implementation, aka WishList. If not, we can always come back and prioritize fixing it. If you have any comments on this decision, please feel free to add them to this thread, and we can look into it. |
Thanks, agreed with this approach. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The chat shouldn't scroll
Actual Result:
The chat scrolls/jumps
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.22-1
Reproducible in staging?: y
Reproducible in production?: y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
video_20221102_043919_edit.mp4
az_recorder_20221101_210118.1.mp4
Expensify/Expensify Issue URL:
Issue reported by: @thesahindia
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1667344960109819
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: