diff --git a/src/LargeList.js b/src/LargeList.js index 578ed7b8..41bfb802 100644 --- a/src/LargeList.js +++ b/src/LargeList.js @@ -451,8 +451,7 @@ export class LargeList extends React.PureComponent { ); this.props.onScroll && this.props.onScroll(e); const now = new Date().getTime(); - if (this._lastTick - now > 30) { - this._lastTick = now; + if (now - this._lastTick < this.props.updateTimeInterval) { return; } this._lastTick = now; diff --git a/src/WaterfallList.js b/src/WaterfallList.js index 3e073ae9..fc347779 100644 --- a/src/WaterfallList.js +++ b/src/WaterfallList.js @@ -300,8 +300,7 @@ export class WaterfallList extends React.PureComponent { _onScroll = e => { this._contentOffsetY = e.nativeEvent.contentOffset.y; const now = new Date().getTime(); - if (this._lastTick - now > 30) { - this._lastTick = now; + if (now - this._lastTick < 30) { return; } this._lastTick = now;