-
Notifications
You must be signed in to change notification settings - Fork 370
Fix finding UIScrollViews that are clipped(), masked or combined with clipShape() or cornerRadius() #213
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
clipShape
clipShape
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
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.
This breaks CI in every platform for testNestedScrollView
. We can't merge this until that test is fixed.
You're right. The test is also correct though. It seems that this change breaks the logic as soon as two ScrollViews are in play (either on the same level, or nested). |
I think I found a solution, but I feel the name of the new selector is quite verbose. Because first i will search through the hierarchy that was looked through before, and only if it doesn't find the respective ScrollView I apply the selector that goes higher up to its ancestors. Changes pushed Let me know how this can be improved |
I also added a unit test that validates that masked or clipped ScrollViews are also found correctly. (unit tests "correctly" fail if the change is reverted) |
You're right, I misspoke 😄 |
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.
Great effort, @paescebu 👏
thank you @davdroman! |
This should fix issue:
issues 162
Fixes: