@tanstack/svelte-virtual 3.1.3 → 3.2.1
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/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export function createWindowVirtualizer(options) {
|
|
|
40
40
|
observeElementRect: observeWindowRect,
|
|
41
41
|
observeElementOffset: observeWindowOffset,
|
|
42
42
|
scrollToFn: windowScroll,
|
|
43
|
-
initialOffset: typeof document !== 'undefined' ? window.scrollY :
|
|
43
|
+
initialOffset: () => (typeof document !== 'undefined' ? window.scrollY : 0),
|
|
44
44
|
...options,
|
|
45
45
|
});
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tanstack/svelte-virtual",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Headless UI for virtualizing scrollable elements in Svelte",
|
|
5
5
|
"author": "Tanner Linsley",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"src"
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@tanstack/virtual-core": "3.1
|
|
43
|
+
"@tanstack/virtual-core": "3.2.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@sveltejs/package": "^2.2.6",
|
package/src/index.ts
CHANGED
|
@@ -95,7 +95,7 @@ export function createWindowVirtualizer<TItemElement extends Element>(
|
|
|
95
95
|
observeElementRect: observeWindowRect,
|
|
96
96
|
observeElementOffset: observeWindowOffset,
|
|
97
97
|
scrollToFn: windowScroll,
|
|
98
|
-
initialOffset: typeof document !== 'undefined' ? window.scrollY :
|
|
98
|
+
initialOffset: () => (typeof document !== 'undefined' ? window.scrollY : 0),
|
|
99
99
|
...options,
|
|
100
100
|
})
|
|
101
101
|
}
|