@af-utils/react-virtual-headless
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -1,4 +0,4 @@ | ||
export const raw = 7990; | ||
export const min = 4907; | ||
export const minGz = 2113; | ||
export const minBrotli = 1914; | ||
export const raw = 8004; | ||
export const min = 4915; | ||
export const minGz = 2123; | ||
export const minBrotli = 1926; |
@@ -134,6 +134,6 @@ import { useRef as t, useEffect as s, useLayoutEffect as i, useCallback as h } from "react"; | ||
const h = 0 | t, e = Math.min(this.scrollSize - this._, this.getOffset(h) + Math.round(this.S[h] * (t - h))); | ||
e !== this.g && (i ||= 5, performance.now() - this.m > 200 && (this.u.scroll({ | ||
e !== this.g && (i ||= 5, s && 128 >= performance.now() - this.m || (this.u.scroll({ | ||
[this.t]: e, | ||
behavior: s ? "smooth" : "instant" | ||
}), i--), i && (this.p = setTimeout((() => this.scrollTo(t, s, i)), 400))); | ||
}), i--), i && (this.p = setTimeout((() => this.scrollTo(t, s, i)), s ? 256 : 0))); | ||
} | ||
@@ -140,0 +140,0 @@ } |
@@ -138,6 +138,6 @@ import { useRef as t, useEffect as s, useLayoutEffect as i, useCallback as h } from "react"; | ||
const h = 0 | t, e = Math.min(this.scrollSize - this._, this.getOffset(h) + Math.round(this.S[h] * (t - h))); | ||
e !== this.g && (i ||= 5, performance.now() - this.m > 200 && (this.u.scroll({ | ||
e !== this.g && (i ||= 5, s && 128 >= performance.now() - this.m || (this.u.scroll({ | ||
[this.t]: e, | ||
behavior: s ? "smooth" : "instant" | ||
}), i--), i && (this.p = setTimeout((() => this.scrollTo(t, s, i)), 400))); | ||
}), i--), i && (this.p = setTimeout((() => this.scrollTo(t, s, i)), s ? 256 : 0))); | ||
} | ||
@@ -144,0 +144,0 @@ } |
{ | ||
"name": "@af-utils/react-virtual-headless", | ||
"private": false, | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "React components for rendering large scrollable data", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/nowaalex/af-virtual-scroll.git", |
Sorry, the diff of this file is not supported yet
45895