-
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
[HOLD for payment 2023-09-29] Disable hover effect while scrolling in Report Screen on Web #27214
Comments
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Hey @mountiny ! You can assign this to me, Hur from callstack ! |
📣 @hurali97! 📣
|
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
Lies |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.72-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-09-29. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary: No payment due here |
@MitchExpensify sorry, there should be $500 to @abdulrahuman5196 for internal review and testing |
Ok great, thanks for confirming @mountiny I'll create a payment issue in Upwork here https://www.upwork.com/jobs/~018fc17964696bfa2d Offer sent to you @abdulrahuman5196 |
Yes.
|
Paid and test request added |
Part of #26087
Problem
As a user, scrolling the Report screen on web appears to be janky due to hover effect as components keep changing the background and Reaction bar keeps toggling based on the successive hover effect due to the scrolling and cursor stays in one place. This might not be janky in actual but as a user, we perceive it as the scroll is janky.
Solution
We can take example of Slack and how it disables the hover effect and hides the reaction bar, when the user is scrolling through the messages. Once the user stops scrolling, the hover effect is applied to that message and reaction bar is shown. ( You can quickly give it a try in any slack channel ). So we can move forward with fixing the perceived performance here.
To implement something similar, I tried the following steps:
onScroll(Begin|End)Drag
Events necolas/react-native-web#1305 and https://necolas.github.io/react-native-web/docs/scroll-view/ )The issue with this solution was that the scroll would delay for a while due to the extra re-render which happens due to isScrolling state being set in BaseInvertedFlatList . As a result, we see the re-renders of all the renderItem too. It happens when we start to scroll and once, when we stop the scroll.
To fix this, I re-structured my approach towards event driven data passing. Below are the steps:
Before:
See the attached video with title: recording-before
recording-before.mov
After:
See the attached video with title: recording-after
recording-after.mov
Testing Environment:
Macbook M1 Pro, 16GB Ram, Ventura 13.4.1
The text was updated successfully, but these errors were encountered: