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

Avoid animation of the element snapping back to its origin position when element is dropped. #620

Closed
fpoirier1 opened this issue Mar 18, 2024 · 1 comment · Fixed by #634

Comments

@fpoirier1
Copy link

First and for most, this library is a state of the art, thank you very much!

Describe the bug
When dropping an element, there is an animation of the element snapping back to its origin position before the change happens.

To Reproduce
Steps to reproduce the behavior:

  1. Go to demo example (https://craft.js.org/examples/basic)
  2. Drag the 'Click me' button far to the bottom of the page
  3. You see the placeholder going back to is original position before being moved under the 'It's me again!' block.

Expected behavior
We would expect the change to happens instantaneously.

Screenshots
https://github.com/prevwong/craft.js/assets/1587658/33bdea05-96a5-4902-9662-b634f8bb2409

Your environment

Software Version(s)
craft.js 0.2.5
React 18.2.0
TypeScript
Browser Chrome
npm/Yarn
Operating System Mac OSX
@prevwong
Copy link
Owner

Fixed in #634!

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

Successfully merging a pull request may close this issue.

2 participants