aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.sortable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.sortable.js')
-rw-r--r--ui/ui.sortable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js
index c8fbad184..b92e20166 100644
--- a/ui/ui.sortable.js
+++ b/ui/ui.sortable.js
@@ -160,8 +160,8 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, {
var itemHeight = item.height, itemWidth = item.width;
var itemTop = item.top, itemLeft = item.left;
- var isOverElementHeight = $.ui.intersectHeight(helperTop + dyClick, itemTop, itemHeight);
- var isOverElementWidth = $.ui.intersectWidth(helperLeft + dxClick, itemLeft, itemWidth);
+ var isOverElementHeight = $.ui.isOverHeight(helperTop + dyClick, itemTop, itemHeight);
+ var isOverElementWidth = $.ui.isOverWidth(helperLeft + dxClick, itemLeft, itemWidth);
var isOverElement = isOverElementHeight && isOverElementWidth;
var verticalDirection = this._getDragVerticalDirection();
var horizontalDirection = this._getDragHorizontalDirection();