-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add dragHandleRef: To allow for a ref to be passed in to be used as the Drag Handle #90
base: master
Are you sure you want to change the base?
Conversation
Only works on Web |
Thank you for contributing to this repository. I have some thoughts on your inputs though.
|
Hey @3DJakob , on the 2nd point, The What I needed here was to only allow the card to be dragged by a specific ref inside the card. So basically I didn't want to whole card to listen to mouseDown or mouseDrag but just one part of the card, e.g. the header of the card in my case. Does that make it clear? Let me know if you want me to explain further. Happy to do it if I couldn't explain it clearly :) |
Ok! Thank you for that explanation that makes sense! I guess this could be good when using ScrollViews inside a card. What do you think about updating the documentation to something like this?
|
Also if you want an easy way of testing this on mobile as well I suggest you simply clone the https://github.com/3DJakob/react-native-tinder-card-demo repo. |
Will update the doc. Your version surely makes more sense. And also thanks for the example repo :) Will try to get this done too |
The documentation is automatically generated from |
Saw this here: https://stackoverflow.com/questions/58314694/pan-responder-simply-not-working-on-android This seems to fix the drag issue if we do set the |
Allows for a
dragHandleRef
to be passed in to be used as the drag handle