File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -119,11 +119,11 @@ export default class SortableList extends Component {
119119
120120 // Scroll if the row is not visible.
121121 if (
122- keyY < this . state . contentOffset . y ||
123- keyY > this . state . contentOffset . y + containerLayout . height
122+ keyY < this . _contentOffset . y ||
123+ keyY > this . _contentOffset . y + containerLayout . height
124124 ) {
125125 this . _contentOffset = {
126- x : this . state . contentOffset . x ,
126+ x : this . _contentOffset . x ,
127127 y : keyY ,
128128 } ;
129129 this . _scroll ( animated ) ;
@@ -427,7 +427,7 @@ export default class SortableList extends Component {
427427 } ;
428428
429429 _onScroll = ( { nativeEvent : { contentOffset} } ) => {
430- this . setState ( { contentOffset} ) ;
430+ this . _contentOffset = contentOffset ;
431431 } ;
432432
433433 _onRefContainer = ( animatedComponent ) => {
You can’t perform that action at this time.
0 commit comments