Socket
Socket
Sign inDemoInstall

svelte-tiny-virtual-list

Package Overview
Dependencies
0
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

17

dist/svelte-tiny-virtual-list.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc