mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Draggable: Cleanup.
This commit is contained in:
parent
97d20634e0
commit
26729bd7e9
7
ui/jquery.ui.draggable.js
vendored
7
ui/jquery.ui.draggable.js
vendored
@ -309,7 +309,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
||||
},
|
||||
|
||||
_handleScrolling: function( pointerPosition ) {
|
||||
var newScrollTop, newScrollLeft,
|
||||
var newScrollTop, newScrollLeft, change,
|
||||
scrollTop = this.scrollParent.scrollTop(),
|
||||
scrollLeft = this.scrollParent.scrollLeft(),
|
||||
scrollSensitivity = this.scrollSensitivity,
|
||||
@ -324,10 +324,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
|
||||
xRight = this.overflow.width + overflowLeft - pointerPosition.x,
|
||||
xLeft = pointerPosition.x- overflowLeft,
|
||||
yBottom = this.overflow.height + overflowTop - pointerPosition.y,
|
||||
yTop = pointerPosition.y - overflowTop,
|
||||
|
||||
// Accounts for change in scrollbar to modify "original" pointer
|
||||
change;
|
||||
yTop = pointerPosition.y - overflowTop;
|
||||
|
||||
// Handle vertical scrolling
|
||||
if ( yBottom < scrollSensitivity ) {
|
||||
|
Loading…
Reference in New Issue
Block a user