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 hippy-actions[bot] committed Feb 1, 2024
1 parent 4cfdb8f commit a9a2fa7
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,17 +270,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 a9a2fa7

Please sign in to comment.