-
-
Notifications
You must be signed in to change notification settings - Fork 461
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
Sorting a grids is not smooth #530
Comments
Hey, this is somewhat of a bug, yes. To allow for other features and fix some issues we had to change a lot of things which lead to the current behaviour. To fix this I assume you would have to improve the logic for dead zone calculation and for targeting which item is before the current. I would very much appreciate if you could look into it and send a PR to fix this. |
I made a cope pen to better identify the bugs I also have with drag and drop with CSS grid.
I suppose it will be great, if the placeholder could use the same css class than the dragged element. and keep exact dimension of the dragged element. |
|
Hey @heyyo-droid that is an interesting ideas, |
Hi @lukasoppermann |
I am trying to implement the sortable to existing grid layout.
If you have a look at the grid demo, it has nothing in common with the initial fork, where sorting is smooth and without issues. Any items can be dragged around, back & forth where placeholder & target are easy to understand
http://farhadi.ir/projects/html5sortable/
While on your demo, the grid items are jumping around, once dragstart is initialized, difficult to follow the logic (for an average user). Furthermore, (e.g) once you drag item 1 after item 2 , it becomes a mess to drag it back to its initial position
Is it as it has to be, or just a bug?
Same happens on my own grid layout
The text was updated successfully, but these errors were encountered: