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 with swapping items #933

Open
rychagov opened this issue Jan 13, 2025 · 0 comments
Open

Bug with swapping items #933

rychagov opened this issue Jan 13, 2025 · 0 comments

Comments

@rychagov
Copy link

rychagov commented Jan 13, 2025

https://stackblitz.com/edit/stackblitz-angular-gridster2-bug-ymn1em4z?file=src%2Fgrid%2Fgrid.component.ts

Try to move the element that is below the first two higher.
Expected behavior: the element took a new place, the others moved lower.
Actual behavior: the element took a new place, but at the moment of dragging, the mutual position of the first two elements changed. At the same time, if you move the element very quickly, one of the first two elements will jump approximately to the place of the element that we are moving.

If change compactType: CompactType.CompactUp to compactType: CompactType.CompactDown then the same behabior appears when item moved lower.

P.S. Unexpected behavior when:
using compact type, e.g. CompactType.CompactUp + swap false + pushItems true = impossilbe to move items upper

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

1 participant