RowReorder extension: dragging row goes into incorrect position
RowReorder extension: dragging row goes into incorrect position
vers2
Posts: 1Questions: 1Answers: 0
Dragging row goes into incorrect position if you move mouse quick enough.
Steps to reproduce:
- Open http://datatables.net/extensions/rowreorder/examples/initialisation/defaults.html example.
- Choose 100 entries.
- Start dragging first row and then quickly move mouse down the list while not releasing mouse button.
You will see that dragging row is few rows behind mouse pointer (usually 10-20 rows), and if you continue to move it, the row exactly under the mouse pointer will go at the current place of dragging row, which makes all the rows between dragging row and mouse pointer go down.
Tested in IE 11 and FF 43.
This discussion has been closed.
Answers
Wow! I didn't even know that this feature existed. I had been using a total different drag n drop method outside of dataTables. I do, however, see the issue that you are mentioning. The drag event isn't able to keep up with the user so the helper row gets disconnected (position wise) from the dragged row.
Fixed here. Thanks for letting me know about it. The fix will be included in the next release of RowReorder and the nightly will have rebuilt very shortly.
Allan