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
Hi, I'm trying to make drag and drop component where it has Draggable and Droppable components.
Droppable is a container for Draggable elements.
That means Draggable elements can only be dragged into Droppable components.
My approach to this is to make Droppable component to react to touch events whenever dragged element is being "dragged over" to the Droppable component.
But it seems like PanGestureHandler or GestureDetector with Gesture.Pan() won't react to any touch events that is initiated outside from it.
I saw similar questions from stackoverflow like this one, but the only way to achieve this is to create PanGestureHandler that fits the screen and handle everything from there.
Is this the only possible way or am I missing something?
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
-
Hi, I'm trying to make drag and drop component where it has
Draggable
andDroppable
components.Droppable
is a container forDraggable
elements.That means
Draggable
elements can only be dragged intoDroppable
components.My approach to this is to make
Droppable
component to react to touch events whenever dragged element is being "dragged over" to theDroppable
component.But it seems like
PanGestureHandler
orGestureDetector
withGesture.Pan()
won't react to any touch events that is initiated outside from it.I saw similar questions from stackoverflow like this one, but the only way to achieve this is to create
PanGestureHandler
that fits the screen and handle everything from there.Is this the only possible way or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions