File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -687,7 +687,6 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
687687 ] ) ;
688688
689689 onGestureRelease = [
690- set ( this . isPressedIn . native , 0 ) ,
691690 cond (
692691 this . isHovering ,
693692 [
@@ -855,6 +854,10 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
855854 ) ;
856855 }
857856
857+ onContainerTouchEnd = ( ) => {
858+ this . isPressedIn . native . setValue ( 0 ) ;
859+ } ;
860+
858861 render ( ) {
859862 const { scrollEnabled, debug, horizontal, activationDistance } = this . props ;
860863 const { hoverComponent } = this . state ;
@@ -876,6 +879,7 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
876879 style = { styles . flex }
877880 ref = { this . containerRef }
878881 onLayout = { this . onContainerLayout }
882+ onTouchEnd = { this . onContainerTouchEnd }
879883 >
880884 < AnimatedFlatList
881885 { ...this . props }
@@ -894,6 +898,10 @@ class DraggableFlatList<T> extends React.Component<Props<T>, State> {
894898 < Animated . Code >
895899 { ( ) =>
896900 block ( [
901+ onChange (
902+ this . isPressedIn . native ,
903+ cond ( not ( this . isPressedIn . native ) , this . onGestureRelease )
904+ ) ,
897905 onChange ( this . touchAbsolute , this . checkAutoscroll ) ,
898906 cond ( clockRunning ( this . hoverClock ) , [
899907 spring (
You can’t perform that action at this time.
0 commit comments