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]: Swapping an element to another slot shifts it back the width of the item (with debugging) #113

Open
georg-stone opened this issue Jan 10, 2025 · 2 comments

Comments

@georg-stone
Copy link

I've been using Swapy for about 3 weeks until I ran it to a critical bug. Whenever I swap an item to another slot, the translate style applied to the element when dragging (it could be x: -400px) causes the element to shift back 400px whenever your move enters the slot. This is because it is relative to the container. I would really like this to be fixed ASAP, since it's holding me back from shipping my app.

@TahaSh
Copy link
Owner

TahaSh commented Jan 19, 2025

Could you please provide a small code example to reproduce it?

@georg-stone
Copy link
Author

Not really. I ended up scrapping the code since the feature already wouldn't have worked, so I deleted it. It's really hard to reproduce and rare, I'm not sure what happened at all besides looking at the positioning.

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