File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export default class VirtualList extends PureComponent {
50
50
this . props . scrollToIndex != null && this . getOffsetForIndex ( this . props . scrollToIndex ) ||
51
51
0
52
52
) ,
53
- scrollChangeReason : SCROLL_CHANGE_REQUESTED
53
+ scrollChangeReason : SCROLL_CHANGE_REQUESTED ,
54
54
} ;
55
55
56
56
_styleCache = { } ;
@@ -130,11 +130,14 @@ export default class VirtualList extends PureComponent {
130
130
const { onScroll} = this . props ;
131
131
const offset = this . getNodeOffset ( ) ;
132
132
133
- if ( offset < 0 || this . state . offset == offset || e . target !== this . rootNode ) {
133
+ if ( offset < 0 || this . state . offset = == offset || e . target !== this . rootNode ) {
134
134
return ;
135
135
}
136
136
137
- this . setState ( { offset, scrollChangeReason : SCROLL_CHANGE_OBSERVED } ) ;
137
+ this . setState ( {
138
+ offset,
139
+ scrollChangeReason : SCROLL_CHANGE_OBSERVED ,
140
+ } ) ;
138
141
139
142
if ( typeof onScroll === 'function' ) {
140
143
onScroll ( offset , e ) ;
You can’t perform that action at this time.
0 commit comments