@legendapp/list 3.0.0-beta.19 → 3.0.0-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.DS_Store +0 -0
- package/index.js +5 -3
- package/index.mjs +5 -3
- package/index.native.js +5 -3
- package/index.native.mjs +5 -3
- package/package.json +1 -1
package/.DS_Store
ADDED
|
Binary file
|
package/index.js
CHANGED
|
@@ -2655,7 +2655,9 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2655
2655
|
const scrollBottomBuffered = scrollBottom + scrollBufferBottom;
|
|
2656
2656
|
if (!dataChanged && !forceFullItemPositions && scrollForNextCalculateItemsInView) {
|
|
2657
2657
|
const { top, bottom } = scrollForNextCalculateItemsInView;
|
|
2658
|
-
if (
|
|
2658
|
+
if (top === null && bottom === null) {
|
|
2659
|
+
state.scrollForNextCalculateItemsInView = void 0;
|
|
2660
|
+
} else if ((top === null || scrollTopBuffered > top) && (bottom === null || scrollBottomBuffered < bottom)) {
|
|
2659
2661
|
return;
|
|
2660
2662
|
}
|
|
2661
2663
|
}
|
|
@@ -2762,10 +2764,10 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2762
2764
|
startNoBuffer
|
|
2763
2765
|
});
|
|
2764
2766
|
if (enableScrollForNextCalculateItemsInView && nextTop !== void 0 && nextBottom !== void 0) {
|
|
2765
|
-
state.scrollForNextCalculateItemsInView = nextTop
|
|
2767
|
+
state.scrollForNextCalculateItemsInView = isNullOrUndefined(nextTop) && isNullOrUndefined(nextBottom) ? void 0 : {
|
|
2766
2768
|
bottom: nextBottom,
|
|
2767
2769
|
top: nextTop
|
|
2768
|
-
}
|
|
2770
|
+
};
|
|
2769
2771
|
}
|
|
2770
2772
|
let numContainers = prevNumContainers;
|
|
2771
2773
|
const pendingRemoval = [];
|
package/index.mjs
CHANGED
|
@@ -2634,7 +2634,9 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2634
2634
|
const scrollBottomBuffered = scrollBottom + scrollBufferBottom;
|
|
2635
2635
|
if (!dataChanged && !forceFullItemPositions && scrollForNextCalculateItemsInView) {
|
|
2636
2636
|
const { top, bottom } = scrollForNextCalculateItemsInView;
|
|
2637
|
-
if (
|
|
2637
|
+
if (top === null && bottom === null) {
|
|
2638
|
+
state.scrollForNextCalculateItemsInView = void 0;
|
|
2639
|
+
} else if ((top === null || scrollTopBuffered > top) && (bottom === null || scrollBottomBuffered < bottom)) {
|
|
2638
2640
|
return;
|
|
2639
2641
|
}
|
|
2640
2642
|
}
|
|
@@ -2741,10 +2743,10 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2741
2743
|
startNoBuffer
|
|
2742
2744
|
});
|
|
2743
2745
|
if (enableScrollForNextCalculateItemsInView && nextTop !== void 0 && nextBottom !== void 0) {
|
|
2744
|
-
state.scrollForNextCalculateItemsInView = nextTop
|
|
2746
|
+
state.scrollForNextCalculateItemsInView = isNullOrUndefined(nextTop) && isNullOrUndefined(nextBottom) ? void 0 : {
|
|
2745
2747
|
bottom: nextBottom,
|
|
2746
2748
|
top: nextTop
|
|
2747
|
-
}
|
|
2749
|
+
};
|
|
2748
2750
|
}
|
|
2749
2751
|
let numContainers = prevNumContainers;
|
|
2750
2752
|
const pendingRemoval = [];
|
package/index.native.js
CHANGED
|
@@ -2478,7 +2478,9 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2478
2478
|
const scrollBottomBuffered = scrollBottom + scrollBufferBottom;
|
|
2479
2479
|
if (!dataChanged && !forceFullItemPositions && scrollForNextCalculateItemsInView) {
|
|
2480
2480
|
const { top, bottom } = scrollForNextCalculateItemsInView;
|
|
2481
|
-
if (
|
|
2481
|
+
if (top === null && bottom === null) {
|
|
2482
|
+
state.scrollForNextCalculateItemsInView = void 0;
|
|
2483
|
+
} else if ((top === null || scrollTopBuffered > top) && (bottom === null || scrollBottomBuffered < bottom)) {
|
|
2482
2484
|
if (!IsNewArchitecture && state.initialAnchor) {
|
|
2483
2485
|
ensureInitialAnchor(ctx);
|
|
2484
2486
|
}
|
|
@@ -2588,10 +2590,10 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2588
2590
|
startNoBuffer
|
|
2589
2591
|
});
|
|
2590
2592
|
if (enableScrollForNextCalculateItemsInView && nextTop !== void 0 && nextBottom !== void 0) {
|
|
2591
|
-
state.scrollForNextCalculateItemsInView = nextTop
|
|
2593
|
+
state.scrollForNextCalculateItemsInView = isNullOrUndefined(nextTop) && isNullOrUndefined(nextBottom) ? void 0 : {
|
|
2592
2594
|
bottom: nextBottom,
|
|
2593
2595
|
top: nextTop
|
|
2594
|
-
}
|
|
2596
|
+
};
|
|
2595
2597
|
}
|
|
2596
2598
|
let numContainers = prevNumContainers;
|
|
2597
2599
|
const pendingRemoval = [];
|
package/index.native.mjs
CHANGED
|
@@ -2457,7 +2457,9 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2457
2457
|
const scrollBottomBuffered = scrollBottom + scrollBufferBottom;
|
|
2458
2458
|
if (!dataChanged && !forceFullItemPositions && scrollForNextCalculateItemsInView) {
|
|
2459
2459
|
const { top, bottom } = scrollForNextCalculateItemsInView;
|
|
2460
|
-
if (
|
|
2460
|
+
if (top === null && bottom === null) {
|
|
2461
|
+
state.scrollForNextCalculateItemsInView = void 0;
|
|
2462
|
+
} else if ((top === null || scrollTopBuffered > top) && (bottom === null || scrollBottomBuffered < bottom)) {
|
|
2461
2463
|
if (!IsNewArchitecture && state.initialAnchor) {
|
|
2462
2464
|
ensureInitialAnchor(ctx);
|
|
2463
2465
|
}
|
|
@@ -2567,10 +2569,10 @@ function calculateItemsInView(ctx, params = {}) {
|
|
|
2567
2569
|
startNoBuffer
|
|
2568
2570
|
});
|
|
2569
2571
|
if (enableScrollForNextCalculateItemsInView && nextTop !== void 0 && nextBottom !== void 0) {
|
|
2570
|
-
state.scrollForNextCalculateItemsInView = nextTop
|
|
2572
|
+
state.scrollForNextCalculateItemsInView = isNullOrUndefined(nextTop) && isNullOrUndefined(nextBottom) ? void 0 : {
|
|
2571
2573
|
bottom: nextBottom,
|
|
2572
2574
|
top: nextTop
|
|
2573
|
-
}
|
|
2575
|
+
};
|
|
2574
2576
|
}
|
|
2575
2577
|
let numContainers = prevNumContainers;
|
|
2576
2578
|
const pendingRemoval = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@legendapp/list",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.20",
|
|
4
4
|
"description": "Legend List is a drop-in replacement for FlatList with much better performance and supporting dynamically sized items.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"private": false,
|