Skip to content

Commit 54016b8

Browse files
committed
Sortable: Reverted 56b0da5 as #4551 is invalid.
1 parent bc6a28e commit 54016b8

File tree

2 files changed

+4
-54
lines changed

2 files changed

+4
-54
lines changed

tests/visual/sortable/sortable_ticket_4551.html

Lines changed: 0 additions & 54 deletions
This file was deleted.

ui/jquery.ui.sortable.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,10 @@ $.widget("ui.sortable", $.ui.mouse, {
614614
for (var i = this.items.length - 1; i >= 0; i--){
615615
var item = this.items[i];
616616

617+
//We ignore calculating positions of all connected containers when we're not over them
618+
if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0])
619+
continue;
620+
617621
var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item;
618622

619623
if (!fast) {

0 commit comments

Comments
 (0)