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

[Feature Request] swap on drop #53

Closed
squirrel-bat opened this issue Sep 5, 2024 · 3 comments
Closed

[Feature Request] swap on drop #53

squirrel-bat opened this issue Sep 5, 2024 · 3 comments

Comments

@squirrel-bat
Copy link

I would love to have the option to only swap items on dropping the currently dragged one!
A "lazy mode" if you will. :)

@TahaSh
Copy link
Owner

TahaSh commented Sep 16, 2024

@squirrel-bat It's currently on my list. I'll let you know when it's ready.

@TahaSh
Copy link
Owner

TahaSh commented Sep 21, 2024

@squirrel-bat swap on drop is now supported in v0.3.0. You can enable it using swapMode: 'drop'.

Example:

createSwapy(container, {
  swapMode: 'drop'
})

@squirrel-bat
Copy link
Author

Thank you, much appreciated!

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

2 participants