Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Check whether we can scroll vertically in the drag direction #173

Merged
merged 1 commit into from
Mar 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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