Open pedromartins-tk opened 5 years ago
You need an other way to drag or need keep the item selected after long press?
The dragging is amazing. I need the item to return to place if, after a long press, i dont move it.
Those circles are taps on the screen showing that i removed the long press and drag action. It just stays there selected when i remove the finger/click
ok, i know, could you show me your critical code
I just copied the version you have on the README file
sorry, i can't repeat the problem, could you try to set the onDragRelease, and check to see if it can trigger
@SHISME this issue happens mostly in android and the ios emulator. If you test it in an iOS device is not obvious. I'm thinking we need a way to figure out if the block wasn't dragged then reset back to its original place and position. I just haven't been able to figure that part out
I really kown your issue, it occurs to me. I solved it by adding onPressOut callback in Block.
file block.tsx
export const Block: FunctionComponent
anything update?
onPressOut={() => { if (!dragStarted) { onHandRelease(); } }}
This really helped me Thanks
When i long press then item the animation goes on, but if i remove the touch and do not drag it, it does not return to the same place, in other words, it stays selected.