Skip to content

Commit

Permalink
fix(android): remove override getOverScrollMode
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and siguangli committed Dec 26, 2023
1 parent b0dec7b commit a6b0e04
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,6 @@ public boolean onInterceptTouchEvent(MotionEvent event) {
return false;
}

@Override
public int getOverScrollMode() {
// If nested scrolling occurs, remove the overScrollMode to avoid triggering the rebound effect
// by mistake
if (!hasNestedScrollingParent() || getNestedScrollPriority(DIRECTION_LEFT) == Priority.NONE
&& getNestedScrollPriority(DIRECTION_RIGHT) == Priority.NONE) {
return super.getOverScrollMode();
}
return OVER_SCROLL_NEVER;
}

@Override
protected boolean overScrollBy(int deltaX, int deltaY, int scrollX, int scrollY, int scrollRangeX,
int scrollRangeY, int maxOverScrollX, int maxOverScrollY, boolean isTouchEvent) {
Expand Down

0 comments on commit a6b0e04

Please sign in to comment.