-
Notifications
You must be signed in to change notification settings - Fork 97
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
Wrong item order during (faster) dragging inside one dropzone #29
Comments
Hi @AndreZinner , thank you for letting me know about it. I think this might be due to mouse events not raised for every pixel and the list reordering is based upon drag-enter and drag-leave events which rely upon mouse events. |
I guessed it would be something like that.
Sounds like its not that easy to fix.
But this is of course essential, because you corrupt your list order …
Regards
Andre Zinner
|
I have a reproduction for this issue here. Note: branch name is 'wrongordering'. A few points to note:
Steps to reproduce:
Here is a screenshot of the issue, where I dragged row #250, and dropped it after row 246. But for an unknown reason, row 247 got disturbed. Also, because I recalculate the row number of every row, and I am bound to a list of Orders ordered by RowNumber, the final ordering of items is incorrect. |
Thank you @bancroftway for the detailed repro case. I already did some research after the inital report from @AndreZinner and it seems that there is nothing I can do about the problem. |
I recently noticed in my Serverside blazor project, that the visual order of items gets corrupted when I drag a item multiple times up and down WITHOUT releasing the mouse button.
I can reproduce the error in the sample app when i change your code in index.razor to:
If you click and hold on item "A" and move it down to the "G" and again up to "B" and repeat this several times (faster) you may notice, that the order of some items may have changed although you did not "release" your item and all other items should stay in the correct order.
Maybe its a blazor rendering / update issue ...
If I drag slowly I am not able reproduce the effect.
The text was updated successfully, but these errors were encountered: