File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
packages/react-native-web/src/vendor/react-native/VirtualizedList Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -1531,11 +1531,6 @@ class VirtualizedList extends React.PureComponent<Props, State> {
15311531 } ;
15321532
15331533 _onScroll = (e: Object) => {
1534- var contentOffset = ( this . props . inverted ) ? {
1535- x : - e . nativeEvent . contentOffset . x ,
1536- y : - e . nativeEvent . contentOffset . y ,
1537- } : e . nativeEvent . contentOffset
1538-
15391534 this . _nestedChildLists . forEach ( childList => {
15401535 childList . ref && childList . ref . _onScroll ( e ) ;
15411536 } ) ;
@@ -1545,7 +1540,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
15451540 const timestamp = e.timeStamp;
15461541 let visibleLength = this._selectLength(e.nativeEvent.layoutMeasurement);
15471542 let contentLength = this._selectLength(e.nativeEvent.contentSize);
1548- let offset = this._selectOffset(contentOffset);
1543+ let offset = this._selectOffset(e.nativeEvent. contentOffset);
15491544 let dOffset = offset - this._scrollMetrics.offset;
15501545
15511546 if (this._isNestedWithSameOrientation()) {
You can’t perform that action at this time.
0 commit comments