Skip to content
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

List Item Can Teleport When onDragStart Attached to Subcomponent #50

Open
jtwalsh678 opened this issue Sep 19, 2024 · 0 comments
Open

Comments

@jtwalsh678
Copy link

I have a DragList of cards. Each card has a Pressable in the bottom right corner whose onPressIn is set to onDragStart (along with the onPressOut set to onDragEnd). When the press is initiated to start the drag, the card teleports directly downwards such that my finger now rests at the vertical center of the card. I tested two other configurations: one with that Pressable centered vertically (there was no teleporting and everything worked as expected) and one with the Pressable in the upper right corner (this time the card teleported upwards such that once again my finger was resting not on the button, but on the vertical center on the card). I haven’t looked at the code here, but it feels like there should either be a fix or a current workout I haven’t found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant