aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.droppable.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2010-07-06 12:15:47 -0400
committerScott González <scott.gonzalez@gmail.com>2010-07-06 12:15:47 -0400
commit3f3f3571715d74d67fbf05d10f1815a087b7055b (patch)
treeed85e87a831b5215f37e380521f39d557bd27c34 /ui/jquery.ui.droppable.js
parent92b7722fffc68dbb124e5b171cd0169f95da241b (diff)
downloadjquery-ui-3f3f3571715d74d67fbf05d10f1815a087b7055b.tar.gz
jquery-ui-3f3f3571715d74d67fbf05d10f1815a087b7055b.zip
Droppable: Adjust fit tolerance to allow dropping an element exactly the same size as the droppable area. Fixed #5689 - Droppable tolerance fit feature.
Diffstat (limited to 'ui/jquery.ui.droppable.js')
-rw-r--r--ui/jquery.ui.droppable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js
index 4cd7f56e2..429e1518a 100644
--- a/ui/jquery.ui.droppable.js
+++ b/ui/jquery.ui.droppable.js
@@ -161,8 +161,8 @@ $.ui.intersect = function(draggable, droppable, toleranceMode) {
switch (toleranceMode) {
case 'fit':
- return (l < x1 && x2 < r
- && t < y1 && y2 < b);
+ return (l <= x1 && x2 <= r
+ && t <= y1 && y2 <= b);
break;
case 'intersect':
return (l < x1 + (draggable.helperProportions.width / 2) // Right Half