aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authordstrohl <dstrohl@users.noreply.github.com>2014-12-16 08:05:54 -0800
committerAlexander Schmitz <arschmitz@gmail.com>2016-03-30 18:48:29 -0400
commit9aca7067321643dcb4b5db03855591c35cd85d69 (patch)
tree0f5404e8a635afdbbacc10eb4efc75fad4b5d2d5 /ui
parentd21aeee8092b9c4e756606a39dd081ef3fbd5dbc (diff)
downloadjquery-ui-9aca7067321643dcb4b5db03855591c35cd85d69.tar.gz
jquery-ui-9aca7067321643dcb4b5db03855591c35cd85d69.zip
Sortable: Update _contactContainers to use page clientX/Y values
The sortable was using the window position compared with page position to determine where to drop objects. this was only a problem for sortables far enough down to require scrolling. Fixes #10727 Fixes #5039 Closes gh-1475 Closes gh-1585
Diffstat (limited to 'ui')
-rw-r--r--ui/widgets/sortable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/widgets/sortable.js b/ui/widgets/sortable.js
index 8920ed967..59b3bfff0 100644
--- a/ui/widgets/sortable.js
+++ b/ui/widgets/sortable.js
@@ -908,7 +908,7 @@ return $.widget( "ui.sortable", $.ui.mouse, {
floating = innermostContainer.floating || this._isFloating( this.currentItem );
posProperty = floating ? "left" : "top";
sizeProperty = floating ? "width" : "height";
- axis = floating ? "clientX" : "clientY";
+ axis = floating ? "pageX" : "pageY";
for ( j = this.items.length - 1; j >= 0; j-- ) {
if ( !$.contains( this.containers[ innermostIndex ].element[ 0 ], this.items[ j ].item[ 0 ] ) ) {