@tanstack/virtual-core
Advanced tools
Comparing version 3.4.0 to 3.5.0
@@ -73,2 +73,3 @@ export * from './utils.js'; | ||
lanes?: number; | ||
isScrollingResetDelay?: number; | ||
} | ||
@@ -75,0 +76,0 @@ export declare class Virtualizer<TScrollElement extends Element | Window, TItemElement extends Element> { |
@@ -1,2 +0,2 @@ | ||
import { memo, notUndefined, approxEqual, debounce } from "./utils.js"; | ||
import { debounce, memo, notUndefined, approxEqual } from "./utils.js"; | ||
const defaultKeyExtractor = (index) => index; | ||
@@ -68,3 +68,3 @@ const defaultRangeExtractor = (range) => { | ||
cb(offset, false); | ||
}, 150); | ||
}, instance.options.isScrollingResetDelay); | ||
const createHandler = (isScrolling) => () => { | ||
@@ -93,3 +93,3 @@ offset = element[instance.options.horizontal ? "scrollLeft" : "scrollTop"]; | ||
cb(offset, false); | ||
}, 150); | ||
}, instance.options.isScrollingResetDelay); | ||
const createHandler = (isScrolling) => () => { | ||
@@ -214,2 +214,3 @@ offset = element[instance.options.horizontal ? "scrollX" : "scrollY"]; | ||
lanes: 1, | ||
isScrollingResetDelay: 150, | ||
...opts2 | ||
@@ -216,0 +217,0 @@ }; |
{ | ||
"name": "@tanstack/virtual-core", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"description": "Headless UI for virtualizing scrollable elements in TS/JS + Frameworks", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -143,3 +143,3 @@ import { approxEqual, memo, notUndefined, debounce } from './utils' | ||
cb(offset, false) | ||
}, 150) | ||
}, instance.options.isScrollingResetDelay) | ||
@@ -178,3 +178,3 @@ const createHandler = (isScrolling: boolean) => () => { | ||
cb(offset, false) | ||
}, 150) | ||
}, instance.options.isScrollingResetDelay) | ||
@@ -302,2 +302,3 @@ const createHandler = (isScrolling: boolean) => () => { | ||
lanes?: number | ||
isScrollingResetDelay?: number | ||
} | ||
@@ -394,2 +395,3 @@ | ||
lanes: 1, | ||
isScrollingResetDelay: 150, | ||
...opts, | ||
@@ -396,0 +398,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
179423
2452