Skip to content

Commit

Permalink
[TIMOB-25552] Android: Fixed nested scrolling within disabled ScrollV…
Browse files Browse the repository at this point in the history
…iew to propagate to parent view. (#9835)

- Fixed in ScrollView, TableView, and ListView. (I don't think it's possible to reproduce in TableView and ListView though.)
  • Loading branch information
jquick-axway authored and longton95 committed Feb 27, 2018
1 parent b1e6919 commit fdbadf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,8 @@ public void onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUn
{
if (mScrollingEnabled) {
super.onNestedScroll(target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);
} else {
dispatchNestedScroll(dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed, null);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ public void onNestedScroll(View target, int dxConsumed, int dyConsumed, int dxUn
{
if (isTouchScrollable()) {
super.onNestedScroll(target, dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed);
} else {
dispatchNestedScroll(dxConsumed, dyConsumed, dxUnconsumed, dyUnconsumed, null);
}
}
}
Expand Down

0 comments on commit fdbadf1

Please sign in to comment.