Changeset 1171
- Timestamp:
- 12/17/08 11:35:13 (15 months ago)
- Files:
-
- 1 modified
-
trunk/ui/ui.sortable.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ui/ui.sortable.js
r1170 r1171 211 211 this.direction = intersection == 1 ? "down" : "up"; 212 212 213 if (this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this._intersectsGuess(item))) {213 if (this.options.tolerance == "pointer" || this._intersectsWithSides(item)) { 214 214 this.options.sortIndicator.call(this, event, item); 215 } else { 216 break; 215 217 } 216 218 … … 349 351 if( this.options.tolerance == "pointer" 350 352 || this.options.forcePointerForContainers 351 || (this.options.tolerance == "guess" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height'])353 || (this.options.tolerance != "pointer" && this.helperProportions[this.floating ? 'width' : 'height'] > item[this.floating ? 'width' : 'height']) 352 354 ) { 353 355 return isOverElement; … … 379 381 }, 380 382 381 _intersects Guess: function(item) {383 _intersectsWithSides: function(item) { 382 384 383 385 var isOverBottomHalf = $.ui.isOverAxis(this.positionAbs.top + this.offset.click.top, item.top + (item.height/2), item.height), … … 907 909 scrollSpeed: 20, 908 910 sortIndicator: $.ui.sortable.prototype._rearrange, 909 tolerance: " guess",911 tolerance: "default", 910 912 zIndex: 1000 911 913 }