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

[BUG] Drag-Element gets stuck when clicked while animating #2697

Open
ChristianK43 opened this issue Jun 10, 2024 · 1 comment · May be fixed by #2758
Open

[BUG] Drag-Element gets stuck when clicked while animating #2697

ChristianK43 opened this issue Jun 10, 2024 · 1 comment · May be fixed by #2758
Labels
bug Something isn't working

Comments

@ChristianK43
Copy link

ChristianK43 commented Jun 10, 2024

2. Describe the bug

When using an element with drag and dragConstraints enabled, the element gets stuck if it is quickly clicked while moving back inside its constraints after being dragged outside the defined boundaries.
This can also happen when not using dragConstraints but instead animating the element onDragEnd.

3. IMPORTANT: Provide a CodeSandbox reproduction of the bug
example without dragConstraints

example with dragConstraints

4. Steps to reproduce

Steps to reproduce the behavior:

  1. Drag the Element outside of its contraints
  2. Release the element and quickly click it again
  3. Element is now stuck

5. Expected behavior

The element should continue moving inside its constraints after the mouse is released

6. Video or screenshots

Bug.mov

7. Environment details

Chrome 125, macOS 14.5

@ChristianK43 ChristianK43 added the bug Something isn't working label Jun 10, 2024
@ChristianK43 ChristianK43 changed the title [BUG] [BUG] Drag-Element gets stuck when clicked while animating Jun 10, 2024
@hyesungoh hyesungoh linked a pull request Aug 10, 2024 that will close this issue
@injae-kim
Copy link

injae-kim commented Aug 10, 2024

Fix PR: #2758 PTAL! 🙇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants