Skip to content

Commit 604bcfa

Browse files
bestanderfacebook-github-bot
authored andcommitted
Revert D8683555: [react-native][PR] fix: account for ListHeaderComponent length when calculating offset…
Differential Revision: D8683555 Original commit changeset: 05df7b79c16e fbshipit-source-id: 6deb14b99fe04e67e264455ff92a5d8c1c2dd406
1 parent e8ec1cb commit 604bcfa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Libraries/Lists/VirtualizedList.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -1217,9 +1217,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
12171217
}
12181218

12191219
_selectOffset(metrics: $ReadOnly<{x: number, y: number}>): number {
1220-
return (
1221-
(!this.props.horizontal ? metrics.y : metrics.x) - this._headerLength
1222-
);
1220+
return !this.props.horizontal ? metrics.y : metrics.x;
12231221
}
12241222

12251223
_maybeCallOnEndReached() {

0 commit comments

Comments
 (0)