]> source.dussan.org Git - jquery-ui.git/commitdiff
Sortable: Skip triggering over event if it's alreay over the continer. Fixes #9041...
authorJohn Chen <zhang.z.chen@intel.com>
Sat, 16 Feb 2013 14:35:58 +0000 (22:35 +0800)
committerMike Sherov <mike.sherov@gmail.com>
Fri, 8 Mar 2013 21:52:35 +0000 (16:52 -0500)
ui/jquery.ui.sortable.js

index 22acff7d1165af6148b08b9effe786eb96bde3e1..0f9b113a4aa60e13f268f970e7d861a0ee3596cd 100644 (file)
@@ -842,8 +842,10 @@ $.widget("ui.sortable", $.ui.mouse, {
 
                // move the item into the container if it's not there already
                if(this.containers.length === 1) {
-                       this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
-                       this.containers[innermostIndex].containerCache.over = 1;
+                       if (!this.containers[innermostIndex].containerCache.over) {
+                               this.containers[innermostIndex]._trigger("over", event, this._uiHash(this));
+                               this.containers[innermostIndex].containerCache.over = 1;
+                       }
                } else {
 
                        //When entering a new container, we will find the item with the least distance and append our item near it