first commit
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
export function shouldLoadImage(index, currentIndex, loadedIndexes) {
|
||||
return Math.abs(index - currentIndex) <= 1 || (loadedIndexes && loadedIndexes.indexOf(index) !== -1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user