-
Notifications
You must be signed in to change notification settings - Fork 29.7k
update ScrollMetricsNotification #87421
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
chunhtai
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
| // thumb to show immediately when isAlwaysShown is true. A scroll | ||
| // event is required in order to paint the thumb. | ||
| assert(_debugCheckHasValidScrollPosition()); | ||
| scrollController!.position.didUpdateScrollPositionBy(0); |
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.
Removing this hack is nice! 👍
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.
😄
| if (widget.isAlwaysShown == true) { | ||
| _maybeTriggerScrollbar(); | ||
| assert(_debugScheduleCheckHasValidScrollPosition()); | ||
| _fadeoutTimer?.cancel(); |
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.
Oh I see, the rest was factored out of the assert. This is a really nice clean up.
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 reverts commit 0f465e5.
1, notify the first scroll metrics initialize change(null -> non-null)
2,remove the first empty scroll notification request
CC @Piinks @chunhtai