Skip to content

Commit

Permalink
fixing vertical scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Jul 2, 2020
1 parent c19aa63 commit 5a8bf3a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public boolean onTouchEvent(MotionEvent ev) {
boolean enableParentScroll = false;
boolean isSwipeVertical = Math.abs(verticalScroll) > Math.abs(horizontalScroll);
if(isSwipeVertical) {
boolean scrollDirectionUp = verticalScroll > 0;
boolean scrollDirectionUp = verticalScroll < 0;
boolean enableParentScrollUp = scrollDirectionUp && !canScrollVertically(UP);
boolean enableParentScrollDown = !scrollDirectionUp && !canScrollVertically(DOWN);
enableParentScroll = enableParentScrollDown || enableParentScrollUp;
Expand Down

0 comments on commit 5a8bf3a

Please sign in to comment.