-
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
[PAID][$500] NewDot App scroll is 2-3x faster than other apps #10654
Comments
Triggered auto assignment to @luacmartins ( |
I couldn't reproduce this. I'll mark it as external to get more eyes on it though. |
Triggered auto assignment to @laurenreidexpensify ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel ( |
Current assignee @luacmartins is eligible for the Exported assigner, not assigning anyone new. |
what are we expecting for the base unit for the scroll? I think we can simply set the Scroll distance to a fixed set of lines. For e.g.
const computedStyle = window.getComputedStyle(this.list.getScrollableNode());
const listLineHeight = parseInt(computedStyle.lineHeight, 10) || 20;
let scale = e.deltaY;
if (e.deltaMode === e.DOM_DELTA_PIXEL) {
scale = listLineHeight * 3
}
this.list.getScrollableNode().scrollTop -= scale; Here we are scrolling equal to 3 lines at a time. |
@luacmartins Any thoughts? cc: @Expensify/design |
Did we introduce something recently that caused this bug? |
I believe not! |
Yes I believe we did introduce it recently with the react-native-web update. Not sure it was that code that broke it, but I believe it was around that timeframe. |
There is nothing that could cause issues with this due to recent changes. The scroll is controlled via
As the handler was never changed, it is not a regression. The real thing is that may be Flatlist got performance boost somehow and thus the thread is able to scroll with better FPS. |
I'm not sure that this is actually an issue. I've been testing the scroll in our platforms and they seem fine to me. I vote we close this issue. Does anybody else disagree? @AndrewGable @shawnborton since you commented here. |
I mostly use NewDot desktop app with an external mouse and scroll wheel and I haven't experienced this personally. So I would lean on someone to test the scenario in which is described above (trackpad + NewDot web) to see if it feels funky there still? |
IMO the scrolling speed seems fine on trackpad + web. I'm leaning towards closing this issue. |
Doublechecking if we should close https://expensify.slack.com/archives/C01SKUP7QR0/p1663676075990669 |
Checking where to put this in testrail https://expensify.slack.com/archives/C01SKUP7QR0/p1668611021810339 |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.2.28-2 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 2022-11-24. 🎊 |
Seems much better! Thanks for the fix. |
+1 it is way nicer on mobile especially but web is great too |
@mountiny @Santhosh-Sellavel is this the PR that introduced the regression #11035? |
Asking about TestRail here |
Payment issued, let's close out the final steps in the checklist |
@laurenreidexpensify This PR Qualifies for an additional bonus $250 for both! |
No that's not the PR. |
I believe these are the PRs |
bump again! |
@Santhosh-Sellavel Asked internally |
Hey @Santhosh-Sellavel - payment of $750 was issued in Upwork 6 days ago, which was $500 for the job and the $250 bonus. Please recheck your account and let me know if this did not reflect on Upwork. Thanks |
Sorry for the confusion, I missed that completely @laurenreidexpensify thanks for clarification! Also thanks @vit! |
This is offending PRs by the way @mountiny |
Thanks @Santhosh-Sellavel and @laurenreidexpensify I think in this case the offending PR is fine given it is RN update, that is very hard to catch every possible issue. |
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:
Match the scroll behaviour with native apps, having a different speed will influence the users as they will notice it differs and there is no reason for this
Actual Result:
One trackpad of scrolling in Slack seems to scroll about 2/3 of a screen -- which feels "right". But one trackpad of scrolling in NewDot scrolls like 3 screens, which feels like way too much.
Workaround:
unknown
Platform:
Where is this issue occurring?
Version Number: 1.1.91-0
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: Any additional supporting documentation
Recording.526.mp4
Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1661767055711919?thread_ts=1661331711.805659&cid=C01GTK53T8Q
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: