Sortable: Skip items that are not at the same line as the cursor when floating. Fixes #8792 - Issue with floated items in connected lists.
Sortable: Simplifies code by defining a variable
Sortable: Skip updating current container if it's the same as the innermost container. Fixes comment 5 of #9041: the over event fires on every pixel movement
Better floating determination mechanism. Fixes #9042 -  Unstable dragging / sorting with jQuery UI 1.9.1 and above

currentItem might be floating which demands horizontal display
hence distance should be calculated based on that. This is useful
especially when the target container is initially empty, which
makes its floating property false even after some floating items
are dragged into it.