Skip to content

Commit

Permalink
Check wether we can scroll vertically in the drag direction
Browse files Browse the repository at this point in the history
  • Loading branch information
dtvc87 committed Mar 10, 2021
1 parent 9d84c8b commit 56ffb7d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2920,7 +2920,7 @@ public void onNestedPreScroll(@NonNull View target, int dx, int dy, @NonNull int

if (scene.getMoveWhenScrollAtTop()) {
// This blocks transition during scrolling
if ((mTransitionPosition == 1 || mTransitionPosition == 0) && target.canScrollVertically(-1)) {
if ((mTransitionPosition == 1 || mTransitionPosition == 0) && target.canScrollVertically(dy)) {
return;
}
}
Expand Down

0 comments on commit 56ffb7d

Please sign in to comment.