Open schwjustin opened 5 months ago
Same happens to me on vertical reorder too!
in case of vertical reorder it is not working when array is not rendering properly when multiple row render your array data file rather then one row
can you be more specific @pavan-singh-iphtech ?
can you be more specific @pavan-singh-iphtech ? I think the problem is due to the library. Suppose our item count is more than 10; we render them in a grid. In the first row, we render 5 items, and in the second row, we render the other 5. When using this library with direction='horizontal', an issue arises during drag-and-drop. When you try to drag and drop an item from the second row, it instead drags an item from the first row. This is the problem I am facing. I believe this library is primarily designed for drag-and-drop operations within a single list."
Does that sound good? Note: I am talking about in context of Next.js and in TypeScript
Expected behavior
Smoothly move items horizontally and smoothly place them.
Actual behavior
I'm able to drag an item from right to left smoothly, but when I let go to place it there is a visual glitch where the placed item disappears and then reappears about 10px to the left of where it should be and then moves into its correct new position.
Steps to reproduce
What version of
React
are you using?react ^18.3.1
What version of
@hello-pangea/dnd
are you running?@hello-pangea/dnd ^16.6.0
What browser are you using?
Google Chrome
Demo
https://github.com/hello-pangea/dnd/assets/18671480/82b9e059-12c5-43a8-93e8-8f3864b16954