We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10814e2 commit 33ffa79Copy full SHA for 33ffa79
ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/ReactSwipeRefreshLayout.java
@@ -89,6 +89,14 @@ public void requestDisallowInterceptTouchEvent(boolean disallowIntercept) {
89
public boolean onInterceptTouchEvent(MotionEvent ev) {
90
if (shouldInterceptTouchEvent(ev) && super.onInterceptTouchEvent(ev)) {
91
NativeGestureUtil.notifyNativeGestureStarted(this, ev);
92
+
93
+ // If the pull-to-refresh gesture is interrupted by a parent with its own
94
+ // onInterceptTouchEvent then the refresh indicator gets stuck on-screen
95
+ // so we ask the parent to not intercept this touch event after it started
96
+ if (getParent() != null) {
97
+ getParent().requestDisallowInterceptTouchEvent(true);
98
+ }
99
100
return true;
101
}
102
return false;
0 commit comments