Created
March 5, 2020 13:29
-
-
Save sueLan/60d1cd0b5180f7ed4c9ec5656ea23ec4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| this._viewableIndices = viewableIndices; | |
| if (this._config.minimumViewTime) { | |
| const handle = setTimeout(() => { | |
| this._timers.delete(handle); | |
| this._onUpdateSync( | |
| viewableIndices, | |
| onViewableItemsChanged, | |
| createViewToken, | |
| ); | |
| }, this._config.minimumViewTime); | |
| this._timers.add(handle); | |
| } else { | |
| this._onUpdateSync( | |
| viewableIndices, | |
| onViewableItemsChanged, | |
| createViewToken, | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment