react-native-largelist
react-native-largelist copied to clipboard
Correct onScroll throttling
Problem I observed is detailed here: https://github.com/bolan9999/react-native-largelist/issues/466
This PR corrects the logic in two ways:
- Changes the throttle to compare numbers in correct direction, before the if condition was always false.
- 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.