You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My dragGesture looks mostly like this and I am updating the dragY value in onUpdate. dragY is a shared value. I am keeping all calculations on UI thread
When scrolling starts, after sometime, onEnd never gets called. It seems like scrolling steals the PanGesture. None of the onTouchesCancelled or onFinalize also gets called.
I have updated the Flashlist to be like RNGH flatlist in the following manner:-
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an Animated Flashlist created using Reanimated:-
The
renderItem
of this Flashlist contains 5 views in a row. Among those, two views are supposed to be draggable. It looks mostly like this:-There are about 70 elements in the Flashlist.
Now, each draggable view is wrapped with a
GestureDetector
taken fromreact-native-gesture-handler
What is the dragGesture assigned to it?
Each DraggableView is wrapped with its own instance of Gesture.Pan()
That's because each view should be draggable on its own.
The
GestureHandlerRootView
has been wrapped over the entire app.What is the issue that I am facing?
How am I auto scrolling?
My dragGesture looks mostly like this and I am updating the dragY value in onUpdate. dragY is a shared value. I am keeping all calculations on UI thread
When scrolling starts, after sometime, onEnd never gets called. It seems like scrolling steals the PanGesture. None of the
onTouchesCancelled
oronFinalize
also gets called.I have updated the Flashlist to be like RNGH flatlist in the following manner:-
Versions used:-
I am doing all this on iOS
Please help here. I am unable to understand why pan gesture is lost and none of the termination functions on it are called.
Beta Was this translation helpful? Give feedback.
All reactions