@tanstack/virtual-core
Advanced tools
Comparing version 3.8.6 to 3.9.0
@@ -76,2 +76,3 @@ export * from './utils.js'; | ||
enabled?: boolean; | ||
isRtl?: boolean; | ||
} | ||
@@ -78,0 +79,0 @@ export declare class Virtualizer<TScrollElement extends Element | Window, TItemElement extends Element> { |
@@ -82,3 +82,4 @@ import { debounce, memo, notUndefined, approxEqual } from "./utils.js"; | ||
const createHandler = (isScrolling) => () => { | ||
offset = element[instance.options.horizontal ? "scrollLeft" : "scrollTop"]; | ||
const { horizontal, isRtl } = instance.options; | ||
offset = horizontal ? element["scrollLeft"] * (isRtl && -1 || 1) : element["scrollTop"]; | ||
fallback(); | ||
@@ -237,2 +238,3 @@ cb(offset, isScrolling); | ||
enabled: true, | ||
isRtl: false, | ||
...opts2 | ||
@@ -239,0 +241,0 @@ }; |
{ | ||
"name": "@tanstack/virtual-core", | ||
"version": "3.8.6", | ||
"version": "3.9.0", | ||
"description": "Headless UI for virtualizing scrollable elements in TS/JS + Frameworks", | ||
@@ -5,0 +5,0 @@ "author": "Tanner Linsley", |
@@ -159,3 +159,6 @@ import { approxEqual, debounce, memo, notUndefined } from './utils' | ||
const createHandler = (isScrolling: boolean) => () => { | ||
offset = element[instance.options.horizontal ? 'scrollLeft' : 'scrollTop'] | ||
const { horizontal, isRtl } = instance.options | ||
offset = horizontal | ||
? element['scrollLeft'] * ((isRtl && -1) || 1) | ||
: element['scrollTop'] | ||
fallback() | ||
@@ -324,2 +327,3 @@ cb(offset, isScrolling) | ||
enabled?: boolean | ||
isRtl?: boolean | ||
} | ||
@@ -410,2 +414,3 @@ | ||
enabled: true, | ||
isRtl: false, | ||
...opts, | ||
@@ -412,0 +417,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
199106
2762