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
Jittering when swapping elements with the same width/height #2043
Comments
that's so bizzar as it works locally... and not supposed to swap until you hit 50% (with margin) preventing possible back-and-forth. need to investigate. thanks. |
I had this behavior as well - with v5 and v6. |
oh, that's great info @PPP01 thank you. I had not seen it before... Update: it also only happens row=N and larger shapes (3x3) as 1x1 I often test work fine. looks like the shape are switch before they reach mid point. |
fixed in 6.0.2 - don't forget to donate if you find this lib useful! |
* fix bug introduced when fixing gridstack#2043 (checking for 50% coverage before swap)
Subject of the issue
When there are two elements with the same height placed next to each other (horizontally) and I want to swap them (i.e. drag one over the another so they switch places), there's visible jittering of both of them.
The same happens for same width and swapping elements placed vertically.
Your environment
Steps to reproduce
You MUST provide a working demo (keep it simple!) you can use
https://jsfiddle.net/ogm3L8q1/1/
Expected behavior
The swap should happen smoothly
Actual behavior
Both elements jitter. The slower the movement/the bigger the elements, the more visible it is.
The text was updated successfully, but these errors were encountered: