-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
compositor: Update doc of ExternalScrollId in ScrollResult
#40877
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
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
|
No. We can't do this. The |
|
I'll take the opportunity to update the doc. |
This reverts commit 010ec2c. Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
a8c2435 to
874f15c
Compare
ExternalScrollId in ScrollResultExternalScrollId in ScrollResult
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
874f15c to
5c6c8d6
Compare
mrobinson
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.
Thank you for the clarification here.
| /// This is necessary as the `external_scroll_id` of [CompositorHitTestResult] can be different. | ||
| /// Currently, we scroll the first possible inclusive ancestor. |
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.
I suggest a small introduction to the field as well:
| /// This is necessary as the `external_scroll_id` of [CompositorHitTestResult] can be different. | |
| /// Currently, we scroll the first possible inclusive ancestor. | |
| /// The [`ExternalScrollId`] of the node that was actually scrolled. | |
| /// | |
| /// Note that this may be an inclusive ancestor of `external_scroll_id` in | |
| /// [`Self::hit_test_result`]. |
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.
I will reword a bit.
"this may be an inclusive ancestor" -> "this is an inclusive ancestor"
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.
Ah, makes sense!
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
The original attempt is to remove it. But we can't do this. Add doc to explain why.
Testing: This should change nothing.
Fixes: Preparing for #40663.