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 {
119
119
120
120
// Scroll if the row is not visible.
121
121
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
124
124
) {
125
125
this . _contentOffset = {
126
- x : this . state . contentOffset . x ,
126
+ x : this . _contentOffset . x ,
127
127
y : keyY ,
128
128
} ;
129
129
this . _scroll ( animated ) ;
@@ -427,7 +427,7 @@ export default class SortableList extends Component {
427
427
} ;
428
428
429
429
_onScroll = ( { nativeEvent : { contentOffset} } ) => {
430
- this . setState ( { contentOffset} ) ;
430
+ this . _contentOffset = contentOffset ;
431
431
} ;
432
432
433
433
_onRefContainer = ( animatedComponent ) => {
You can’t perform that action at this time.
0 commit comments