Drag'n'Drop: Allow only BETWEEN items

Hello

Using Vaadin 7, I’m implementing drag’n’drop sorting of individual items.

I’d like to allow dropping something only between two items, not ON an existing item.

Because I noticed that if you drop an item so that the line is displayed, it depends on which half you drop it. If you drop it a bit above, then AbstractSelectTargetDetails#getItemIdOver() returns the item above, if you drop it below, then it returns the item below. As the line displayed in the table during mouse over is always at the same place, the same ID should be returned.

How to avoid this?

I might be able to provide screenshots if required.

Thank you and regards.