From 54016b8469345a325e8c1ab6f8a7d17b0f0f8d01 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Thu, 7 Apr 2011 09:08:48 -0400 Subject: Sortable: Reverted 56b0da59d71396a740cf48a75902243d561ba186 as #4551 is invalid. --- ui/jquery.ui.sortable.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui') diff --git a/ui/jquery.ui.sortable.js b/ui/jquery.ui.sortable.js index 8356eeb9f..131fb50d0 100644 --- a/ui/jquery.ui.sortable.js +++ b/ui/jquery.ui.sortable.js @@ -614,6 +614,10 @@ $.widget("ui.sortable", $.ui.mouse, { for (var i = this.items.length - 1; i >= 0; i--){ var item = this.items[i]; + //We ignore calculating positions of all connected containers when we're not over them + if(item.instance != this.currentContainer && this.currentContainer && item.item[0] != this.currentItem[0]) + continue; + var t = this.options.toleranceElement ? $(this.options.toleranceElement, item.item) : item.item; if (!fast) { -- cgit v1.2.3