File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,12 @@ export default function RefreshControl({
7575 PanResponder . create ( {
7676 onStartShouldSetPanResponder : ( ) => false ,
7777 onStartShouldSetPanResponderCapture : ( ) => false ,
78- onMoveShouldSetPanResponder : ( ) => {
78+ onMoveShouldSetPanResponder : ( _ , gestureState ) => {
7979 if ( ! containerRef . current ) return false
8080 const containerDOM = findNodeHandle ( containerRef . current )
8181 if ( ! containerDOM ) return false
8282 return containerDOM . children [ 0 ] . scrollTop === 0
83+ && ( Math . abs ( gestureState . dy ) > Math . abs ( gestureState . dx ) * 2 && Math . abs ( gestureState . vy ) > Math . abs ( gestureState . vx ) * 2.5 )
8384 } ,
8485 onMoveShouldSetPanResponderCapture : ( ) => false ,
8586 onPanResponderMove : ( _ , gestureState ) => {
You can’t perform that action at this time.
0 commit comments