File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -405,9 +405,6 @@ export default class AutoDragSortableView extends Component{
405405 this . setState ( {
406406 scrollEnabled : true
407407 } )
408- if ( this . props . onDragEnd ) {
409- this . props . onDragEnd ( this . touchCurItem . index , this . touchCurItem . moveToIndex )
410- }
411408 //this.state.dataSource[this.touchCurItem.index].scaleValue.setValue(1)
412409 Animated . timing (
413410 this . state . dataSource [ this . touchCurItem . index ] . scaleValue ,
@@ -424,6 +421,9 @@ export default class AutoDragSortableView extends Component{
424421 }
425422 } )
426423 this . changePosition ( this . touchCurItem . index , this . touchCurItem . moveToIndex )
424+ if ( this . props . onDragEnd ) {
425+ this . props . onDragEnd ( this . touchCurItem . index , this . touchCurItem . moveToIndex )
426+ }
427427 this . touchCurItem = null
428428 }
429429 } )
You can’t perform that action at this time.
0 commit comments