File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 193
193
ReorderDrag . prototype . _moveElement = function ( e ) {
194
194
var y = e . gesture . center . pageY -
195
195
this . _currentDrag . elementHeight +
196
- this . _currentDrag . scrollDelta -
196
+ this . scrollView . getValues ( ) . top -
197
197
this . listEl . offsetTop ;
198
198
this . el . style [ ionic . CSS . TRANSFORM ] = 'translate3d(0, ' + y + 'px, 0)' ;
199
199
} ;
215
215
startIndex : startIndex ,
216
216
placeholder : placeholder ,
217
217
scrollHeight : scroll ,
218
- list : placeholder . parentNode ,
219
- scrollDelta : 0
218
+ list : placeholder . parentNode
220
219
} ;
221
220
222
221
this . _moveElement ( e ) ;
243
242
244
243
if ( e . gesture . deltaY < 0 && pixelsPastTop > 0 && scrollY > 0 ) {
245
244
this . scrollView . scrollBy ( null , - pixelsPastTop ) ;
246
- this . _currentDrag . scrollDelta -= pixelsPastTop ;
247
245
}
248
246
if ( e . gesture . deltaY > 0 && pixelsPastBottom > 0 ) {
249
247
if ( scrollY < this . scrollView . getScrollMax ( ) . top ) {
250
248
this . scrollView . scrollBy ( null , pixelsPastBottom ) ;
251
- this . _currentDrag . scrollDelta += pixelsPastBottom ;
252
249
}
253
250
}
254
251
}
You can’t perform that action at this time.
0 commit comments