Revert D8683555: [react-native][PR] fix: account for `ListHeaderComponent` length when calculating offset…
Differential Revision: D8683555 Original commit changeset: 05df7b79c16e fbshipit-source-id: 6deb14b99fe04e67e264455ff92a5d8c1c2dd406
This commit is contained in:
Родитель
e8ec1cb16a
Коммит
604bcfa4a8
|
@ -1217,9 +1217,7 @@ class VirtualizedList extends React.PureComponent<Props, State> {
|
|||
}
|
||||
|
||||
_selectOffset(metrics: $ReadOnly<{x: number, y: number}>): number {
|
||||
return (
|
||||
(!this.props.horizontal ? metrics.y : metrics.x) - this._headerLength
|
||||
);
|
||||
return !this.props.horizontal ? metrics.y : metrics.x;
|
||||
}
|
||||
|
||||
_maybeCallOnEndReached() {
|
||||
|
|
Загрузка…
Ссылка в новой задаче