diff options
author | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-21 18:41:57 +0000 |
---|---|---|
committer | Eduardo Lundgren <eduardolundgren@gmail.com> | 2008-11-21 18:41:57 +0000 |
commit | 65289463debbc3d32cf4de045372bc7e076f7e0c (patch) | |
tree | 3382774eb351c69972141b8dbd6eb7325e952d3d /ui | |
parent | 6a621b6d0e9b60ec75352429a3d1015989a0bd78 (diff) | |
download | jquery-ui-65289463debbc3d32cf4de045372bc7e076f7e0c.tar.gz jquery-ui-65289463debbc3d32cf4de045372bc7e076f7e0c.zip |
Sortables: using isOverAxis.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/ui.sortable.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/ui.sortable.js b/ui/ui.sortable.js index 61745f91f..465dd5ea5 100644 --- a/ui/ui.sortable.js +++ b/ui/ui.sortable.js @@ -395,8 +395,8 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, { return false; } - var isOverElementHeight = $.ui.isOverHeight(helperTop + dyClick, itemTop, itemHeight); - var isOverElementWidth = $.ui.isOverWidth(helperLeft + dxClick, itemLeft, itemWidth); + var isOverElementHeight = $.ui.isOverAxis(helperTop + dyClick, itemTop, itemHeight); + var isOverElementWidth = $.ui.isOverAxis(helperLeft + dxClick, itemLeft, itemWidth); var isOverElement = isOverElementHeight && isOverElementWidth; var verticalDirection = this._getDragVerticalDirection(); var horizontalDirection = this._getDragHorizontalDirection(); @@ -429,9 +429,9 @@ $.widget("ui.sortable", $.extend({}, $.ui.mouse, { var itemHeight = item.height, itemWidth = item.width; var itemTop = item.top, itemLeft = item.left; - var isOverBottomHalf = $.ui.isOverHeight(helperTop + dyClick, itemTop + (itemHeight/2), itemHeight); + var isOverBottomHalf = $.ui.isOverAxis(helperTop + dyClick, itemTop + (itemHeight/2), itemHeight); var isOverTopHalf = !isOverBottomHalf; - var isOverRightHalf = $.ui.isOverWidth(helperLeft + dxClick, itemLeft + (itemWidth/2), itemWidth); + var isOverRightHalf = $.ui.isOverAxis(helperLeft + dxClick, itemLeft + (itemWidth/2), itemWidth); var isOverLeftHalf = !isOverRightHalf; var verticalDirection = this._getDragVerticalDirection(); var horizontalDirection = this._getDragHorizontalDirection(); |