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
[TIMOB-25792] Android: Improved nested horizontal scrolling support #9985
Conversation
…ew should disable vertical scrolling. - Solves regression introduced in Titanium 6.3.0 and restores old behavior, which also matches iOS' behavior.
…s set up with a RefreshControl
…anceled by scrollable parent view - This change requires "TiSwipeRefreshLayout" change introduced by [TIMOB-25792] to work.
…for commit [TIMOB-25937] - Constructor was changed to "protected" by mistake.
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.
CR: PASS 👍
FR Passed.
Studio Ver: 5.1.0.201804161553 |
Generated by 🚫 dangerJS |
JIRA:
Summary:
ScrollView
now disables vertical scrolling parent from scrolling.TextField
horizontally now disables vertical scrolling parent from scrolling.ScrollView
would cancelTextField
horizontal scrolling and steal/intercept all touch events from there. MadeTextField
scrolling difficult.ScrollView
set up with aRefreshControl
.RefreshControl
would cancel horizontal scrolling making it difficult to scroll.RefreshControl
support. Google's JavaSwipeRefreshLayout
class ignores calls torequestDisallowTouchIntercept()
which allowed parent views to steal touch events.Nested horizontal ScrollView test:
ScrollViews
. (It's the box containing labels.)ScrollView
does NOT scroll. You should only be able to scroll the horizontalScrollView
.ScrollView
and drag vertically up/down.ScrollView
vertically and you cannot scroll the horizontalScrollView
.Nested TextField scrolling test:
TextFields
horizontally.ScrollView
does NOT scroll. You should only be able to scroll theTextField
.TextField
and drag vertically up/down.ScrollView
vertically and you cannot scroll theTextField
.Horizontal ScrollView with RefreshControl test:
RefreshControl
is NOT displayed.RefreshControl
is dragged down as you drag down your finger.ScrollView
horizontally.Note: The new change here is that you can only scroll one thing at a time. Either the horizontal
ScrollView
or the pull-downRefreshControl
. You cannot switch to scrolling another UI component in the middle of the same drag. This makes it easier to use.