Skip to content

Commit

Permalink
fix(android): update scrollview consumed value
Browse files Browse the repository at this point in the history
  • Loading branch information
iPel authored and zoomchan-cxj committed Feb 6, 2023
1 parent 4e34fc1 commit d48e061
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,9 @@ void onNestedScrollInternal(@NonNull View target, int dxConsumed, int dyConsumed
myConsumed = getScrollY() - oldScrollY;
dyConsumed += myConsumed;
dyUnconsumed -= myConsumed;
if (consumed != null) {
consumed[1] += myConsumed;
}
}
// Then dispatch to the parent for processing
int parentDx = HippyNestedScrollHelper.priorityOfX(this, dxUnconsumed) == Priority.NONE ? 0 : dxUnconsumed;
Expand Down

0 comments on commit d48e061

Please sign in to comment.