You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the library to make able my table to drag and drop columns and reorder them.
Lately, I found an issue that seems like happen even in your example so potentially there is space of improvement or at least discussion on how to solve.
I found out that if I have a really small column next to a larger one. When I try to move the smaller after the larger it triggers a long loop of onMove action and the table start to flick. To show better the issue see the gif:
Please let me know if you can see this behaviour in similar cases.
This from your example:
The text was updated successfully, but these errors were encountered:
I haven't touched the drag and drop related code in over two years so likely the dependencies are somewhat out of date.
I think I know the cause of the issue, though. Since the columns happen to have different widths, after it has completed the initial operation, there's overlap again that's triggering the logic ad infinitum. To solve, maybe some additional logic would be needed in some appropriate place.
Note that I'm not maintaining the library actively as there's close to zero commercial demand for it and I still have my bills to pay but i'm happy to receive a PR and get the fix published if you want to work on it.
I'm using the library to make able my table to drag and drop columns and reorder them.
Lately, I found an issue that seems like happen even in your example so potentially there is space of improvement or at least discussion on how to solve.
I found out that if I have a really small column next to a larger one. When I try to move the smaller after the larger it triggers a long loop of onMove action and the table start to flick. To show better the issue see the gif:
Please let me know if you can see this behaviour in similar cases.
This from your example:
The text was updated successfully, but these errors were encountered: