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> {
1531
1531
} ;
1532
1532
1533
1533
_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
-
1539
1534
this . _nestedChildLists . forEach ( childList => {
1540
1535
childList . ref && childList . ref . _onScroll ( e ) ;
1541
1536
} ) ;
@@ -1545,7 +1540,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
1545
1540
const timestamp = e.timeStamp;
1546
1541
let visibleLength = this._selectLength(e.nativeEvent.layoutMeasurement);
1547
1542
let contentLength = this._selectLength(e.nativeEvent.contentSize);
1548
- let offset = this._selectOffset(contentOffset);
1543
+ let offset = this._selectOffset(e.nativeEvent. contentOffset);
1549
1544
let dOffset = offset - this._scrollMetrics.offset;
1550
1545
1551
1546
if (this._isNestedWithSameOrientation()) {
You can’t perform that action at this time.
0 commit comments