bolan9999 / react-native-largelist

The best large list component for React Native.
https://bolan9999.github.io/react-native-largelist/
MIT License
2.32k stars 261 forks source link

Correct onScroll throttling #467

Open zzorba opened 2 years ago

zzorba commented 2 years ago

Problem I observed is detailed here: https://github.com/bolan9999/react-native-largelist/issues/466

This PR corrects the logic in two ways: 1) Changes the throttle to compare numbers in correct direction, before the if condition was always false. 2) Start utilizing the updateTimeInterval prop which was previously being ignored throughout the code.

Wasn't totally sure about number 2, but my read was this was the logical place to control that logic.