@@ -164,17 +164,17 @@ $.widget( "ui.draggable", $.ui.interaction, {
164
164
if ( this . _trigger ( "start" , event ,
165
165
this . _fullHash ( pointerPosition ) ) === false ) {
166
166
167
- // domPosition needs to be undone even if start is stopped,
168
- // otherwise this.dragEl will remain in the `appendTo` element
169
- this . startPosition = startPosition ;
170
- this . startOffset = startOffset ;
171
- this . dragEl . css ( {
172
- left : startCssLeft ,
173
- top : startCssTop
174
- } ) ;
167
+ // domPosition needs to be undone even if start is stopped,
168
+ // otherwise this.dragEl will remain in the `appendTo` element
169
+ this . startPosition = startPosition ;
170
+ this . startOffset = startOffset ;
171
+ this . dragEl . css ( {
172
+ left : startCssLeft ,
173
+ top : startCssTop
174
+ } ) ;
175
175
176
- this . _resetDomPosition ( ) ;
177
- return false ;
176
+ this . _resetDomPosition ( ) ;
177
+ return false ;
178
178
}
179
179
180
180
this . _blockFrames ( ) ;
@@ -309,7 +309,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
309
309
} ,
310
310
311
311
_handleScrolling : function ( pointerPosition ) {
312
- var newScrollTop , newScrollLeft ,
312
+ var newScrollTop , newScrollLeft , change ,
313
313
scrollTop = this . scrollParent . scrollTop ( ) ,
314
314
scrollLeft = this . scrollParent . scrollLeft ( ) ,
315
315
scrollSensitivity = this . scrollSensitivity ,
@@ -324,10 +324,7 @@ $.widget( "ui.draggable", $.ui.interaction, {
324
324
xRight = this . overflow . width + overflowLeft - pointerPosition . x ,
325
325
xLeft = pointerPosition . x - overflowLeft ,
326
326
yBottom = this . overflow . height + overflowTop - pointerPosition . y ,
327
- yTop = pointerPosition . y - overflowTop ,
328
-
329
- // Accounts for change in scrollbar to modify "original" pointer
330
- change ;
327
+ yTop = pointerPosition . y - overflowTop ;
331
328
332
329
// Handle vertical scrolling
333
330
if ( yBottom < scrollSensitivity ) {
0 commit comments