-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix(Card Browser): ANR on using scrollbar #20176
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
base: main
Are you sure you want to change the base?
Conversation
1532f08 to
38247e7
Compare
Please clarify this In general, if you can list 'reverted X', then name the commit which is in I believe the commit is: ca95728 |
Ah, by new function I meant the overriding of onTouchEvent which I had done for the main issue of tap and drag, should've phrased it better oops. Will edit the commit message now. |
Would I not have to mention 3c0b2bb since I removed the onTouchListener introduced in that commit, wouldn't it be better to write 'Reverts the onTouchListener introduced in 3c0b2bb'? I could be confusing the meaning of revert here so I just wanted to clarify. |
38247e7 to
8758ff8
Compare
|
Not sure if the new commit description works, but it made sense like this in my head |
8758ff8 to
8a597c3
Compare
|
@david-allison do we want to draft since the new browser redesign is coming? |
|
Let's keep going with this. The redesign will be dev only for a long time, and I expect "production" features to break it. In addition, I'm mostly reworking search, the rendered rows won't change |
Purpose / Description
ANR when the scrollbar was dragged or tapped in larger collections, arose due to the addition of pr #19980
Fixes
Approach
I deleted the previous delta based logic implemented and let the new function handle dragging and tapping which doesn't cause ANRs, for extra optimisation added a scrolltopositionwithoffset.
How Has This Been Tested?
Tested the scrolling with a deck of 100k cards and found no issue on rapid scrolling for 30 seconds along with taps throughout the browser
Checklist
Please, go through these checks before submitting the PR.