Skip to content
Permalink
Browse files

No commit message

  • Loading branch information
Paul Bakaus
Paul Bakaus committed May 26, 2008
1 parent e65ce14 commit 097fc4edaed8a882e07f0e80b4654483ddd97e15
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/source/ui.sortable.js
@@ -118,7 +118,7 @@
var l = item.left, r = l + item.width,
t = item.top, b = t + item.height;

if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.currentItem[0].offsetHeight > item.item[0].offsetHeight)) {
if(this.options.tolerance == "pointer" || (this.options.tolerance == "guess" && this.currentItem[0]['offset'+(this.floating ? 'Width' : 'Height')] > item.item[0]['offset'+(this.floating ? 'Width' : 'Height')])) {

if(!(y1 + this.offset.click.top > t && y1 + this.offset.click.top < b && x1 + this.offset.click.left > l && x1 + this.offset.click.left < r)) return false;

0 comments on commit 097fc4e

Please sign in to comment.
You can’t perform that action at this time.