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

Drag: programmatically reset dragging position #905

Closed
m0t0r opened this issue Oct 30, 2020 · 2 comments · Fixed by #906
Closed

Drag: programmatically reset dragging position #905

m0t0r opened this issue Oct 30, 2020 · 2 comments · Fixed by #906

Comments

@m0t0r
Copy link

m0t0r commented Oct 30, 2020

Hello,

I would like to ask if it would be possible to programmatically reset dragging position? I was checking the current <Drag /> component and unable to find how to reset the position (there is only option to reset on new drag start but I would like to control it without new drag). I also saw a new #902 PR for the hook and wondering if it would be possible to add such API.

Thanks

@m0t0r m0t0r changed the title Drug: programmatically reset dragging position Drag: programmatically reset dragging position Oct 30, 2020
@williaster
Copy link
Collaborator

Hey @m0t0r 👋 this is a great suggestion 💯 I was actually thinking about the need for this yesterday when working on the useDrag addition you mentioned 😄

Let me noodle on how best to add support and will try and get it into #902 or a follow up 👍

@m0t0r
Copy link
Author

m0t0r commented Oct 30, 2020

Hey @williaster, great! Thanks a lot! 👍

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

Successfully merging a pull request may close this issue.

2 participants