Skip to content

Commit 193e9f4

Browse files
committed
fix scrollTo bottom/top when scolling fast down
Disabled with TalkBack inverted FlatList Triggers a scrollTo bottom and subsequent top when scrolling down fast, documented in facebook#34141 (comment)
1 parent f670f19 commit 193e9f4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Libraries/Lists/VirtualizedList.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1875,7 +1875,12 @@ class VirtualizedList extends React.PureComponent<Props, State> {
18751875
this._fillRateHelper.activate();
18761876
}
18771877
this._computeBlankness();
1878-
this._scheduleCellsToRenderUpdate();
1878+
// Disabled with TalkBack inverted FlatList
1879+
// Triggers a scrollTo bottom and subsequent top when scrolling down
1880+
// fast, documented in https://bit.ly/3PkawQ4
1881+
if (!screenreaderEnabled && this.props.inverted) {
1882+
this._scheduleCellsToRenderUpdate();
1883+
}
18791884
};
18801885

18811886
_scheduleCellsToRenderUpdate() {

0 commit comments

Comments
 (0)