You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c7b2c3d
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: patches/[email protected]
+74-13Lines changed: 74 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
diff --git a/lib/index.js b/lib/index.js
2
-
index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b429ab081 100644
2
+
index a183cc7b1669aab25467840540ce3bd1c025fb47..3a27c9b6c4967e5330569b6be492d43bd5184a84 100644
3
3
--- a/lib/index.js
4
4
+++ b/lib/index.js
5
5
@@ -6,6 +6,10 @@ import { jsx as c } from "react/jsx-runtime";
@@ -15,7 +15,22 @@ index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b
15
15
var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v = e => [ ...e ].sort((e, t) => e - t), p = setTimeout, S = clearTimeout, m = "function" == typeof queueMicrotask ? queueMicrotask : e => {
16
16
Promise.resolve().then(e);
17
17
}, $ = () => {
18
-
@@ -31,7 +35,9 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
18
+
@@ -21,6 +25,14 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
19
+
const T = /* @__PURE__ */ new Set, M = () => $ - m, O = () => M() + _ + w, E = e => n(e) - _, L = e => {
20
+
e && (b() && 0 !== I || x && 1 === y ? _ += e : w += e);
21
+
};
22
+
+ // A shift compensates every resize until scroll-end, a 150ms timer from
23
+
+ // its jump's scroll event, but the rows it prepends measure in the frame
24
+
+ // after that jump. Count the rows it awaits so a late frame cannot lose them.
25
+
+ let shiftEnd = 0, shiftIdle = !1;
26
+
+ const itemCount = l, shiftPending = () => {
27
+
+ for (let e = u(k[0], 0), t = a(k[1], shiftEnd - 1, l() - 1); e <= t; e++) if (i(e)) return !0;
28
+
+ return !1;
29
+
+ };
30
+
return {
31
+
_: () => {
32
+
T.clear();
33
+
@@ -31,7 +43,9 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
19
34
let n, o;
20
35
if (z) [n, o] = k; else {
21
36
let r = u(0, O()), i = r + S;
@@ -26,7 +41,21 @@ index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b
26
41
x && (n = a(n, x[0]), o = u(o, x[1]));
27
42
}
28
43
return [ u(n, 0), a(o, l() - 1) ];
29
-
@@ -78,7 +84,9 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
44
+
@@ -69,7 +83,10 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
45
+
}
46
+
-
47
+
+
48
+
case 2:
49
+
- h = 8, 0 !== I && (a = !0, h += 1), I = 0, y = 0, x = null;
50
+
+ h = 8, 0 !== I && (a = !0, h += 1), I = 0, x = null;
51
+
+ // Keep shift policy while mounted rows the shift prepended are
52
+
+ // unmeasured; the batch that measures them ends it below.
0 commit comments