svelte-tiny-virtual-list
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -855,3 +855,3 @@ (function (global, factory) { | ||
// (331:2) {#each items as item (item.index)} | ||
// (327:2) {#each items as item (item.index)} | ||
function create_each_block(key_1, ctx) { | ||
@@ -1131,15 +1131,11 @@ let first; | ||
if (prevProps.itemSize !== itemSize) { | ||
sizeAndPositionManager.updateConfig({ itemSizeGetter: itemSizeGetter(itemSize) }); | ||
} | ||
if (prevProps.itemCount !== itemCount || prevProps.estimatedItemSize !== estimatedItemSize) { | ||
if (itemPropsHaveChanged) { | ||
sizeAndPositionManager.updateConfig({ | ||
itemSizeGetter: itemSizeGetter(itemSize), | ||
itemCount, | ||
estimatedItemSize: getEstimatedItemSize() | ||
}); | ||
} | ||
if (itemPropsHaveChanged) { | ||
recomputeSizes(); | ||
refresh(); | ||
} | ||
@@ -1171,5 +1167,8 @@ | ||
if (!mounted) return; | ||
refresh(); | ||
const { offset, scrollChangeReason } = state; | ||
if (prevState.offset !== offset || prevState.scrollChangeReason !== scrollChangeReason) { | ||
refresh(); | ||
} | ||
if (prevState.offset !== offset && scrollChangeReason === SCROLL_CHANGE_REASON.REQUESTED) { | ||
@@ -1176,0 +1175,0 @@ scrollTo(offset); |
{ | ||
"name": "svelte-tiny-virtual-list", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A tiny but mighty list virtualization component for svelte, with zero dependencies 💪", | ||
@@ -5,0 +5,0 @@ "svelte": "src/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115224
2866