-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Reland "update ScrollMetricsNotification (#87421)" #87818
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
Conversation
This reverts commit 0f465e5.
|
Some tests failed because of multiple assertions reported. I am surprised that the test did not report an error when it first landing. |
|
7bbcdc239b changed the way the error is reported |
Piinks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the failing tests reveal a condition that should be added to the changes from 7bbcdc2
If more than one position is attached to the controller, then RawScrollbarState._shouldUpdatePainter should return false. The failing checks appear to be from the gallery integration tests.
@chunhtai do you want to add that here? Or should I add it in a separate change?
|
@Piinks I will add it in this pr |
828a5c5 to
9fc17cf
Compare
Piinks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
| /// | ||
| /// This should not be mutated directly. [ScrollPosition] objects can be added | ||
| /// and removed using [attach] and [detach]. | ||
| @protected |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooo this is a very exciting change. There are so many work arounds for this that we could clean up. :)
|
one golden failure that is a pretty minor diff and is probably the correct change merging this pr |
This reverts commit 0f465e5.
previous pr broke internal tests. The test will be fixed by cl/388794349
blocked on cl/388794349
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.