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 fefbfd0
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: patches/[email protected]
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,29 @@ 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
-
@@ -173,15 +177,37 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
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
19
+
let n, o;
20
+
if (z) [n, o] = k; else {
21
+
let r = u(0, O()), i = r + S;
22
+
- g || (t = u(0, t), 1 !== I && (r -= t), 2 !== I && (i += t)), [n, o] = k = e(u(0, r), u(0, i)),
23
+
+ // Direction is frozen outside native scrolling, such as after a
24
+
+ // shift until inferred idle; it cannot choose one buffered side.
25
+
+ g || (t = u(0, t), (1 !== I || y) && (r -= t), (2 !== I || y) && (i += t)), [n, o] = k = e(u(0, r), u(0, i)),
26
+
x && (n = a(n, x[0]), o = u(o, x[1]));
27
+
}
28
+
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
30
+
if (!e.length) break;
31
+
L(e.reduce((e, [t, n]) => {
32
+
let r;
33
+
- if (2 === y) r = !0; else if (x && 1 === y) r = t < x[0]; else {
34
+
+ // A shift corrects rows above the viewport end; buffered rows
35
+
+ // wholly below it cannot move the reading position.
36
+
+ if (2 === y) r = E(t) < M() + S; else if (x && 1 === y) r = t < x[0]; else {
37
+
const e = M(), n = E(t), i = o(t);
38
+
r = 1 !== I && 0 === y ? n + i <= e : n < e && n + i < e + S;
39
+
}
40
+
@@ -173,15 +181,37 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
19
41
q: () => [ l.slice(), o ]
20
42
};
21
43
}, C = e => {
@@ -55,7 +77,7 @@ index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b
55
77
t && t.disconnect();
56
78
}
57
79
};
58
-
@@ -249,10 +275,28 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
80
+
@@ -249,10 +279,28 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
59
81
o && o();
60
82
} ];
61
83
}, E = (e, t) => {
@@ -86,7 +108,7 @@ index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b
86
108
behavior: t ? "smooth" : "instant"
87
109
});
88
110
}), u = t ? "width" : "height", d = /* @__PURE__ */ new WeakMap, h = C(t => {
89
-
@@ -263,10 +307,15 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
111
+
@@ -263,10 +311,15 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
90
112
}
91
113
o.length && e.W(3, o);
92
114
});
@@ -103,7 +125,7 @@ index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b
103
125
const e = u.style, t = e[c];
104
126
e[c] = "hidden", p(() => {
105
127
e[c] = t;
106
-
@@ -274,7 +323,7 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
128
+
@@ -274,7 +327,7 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
107
129
}
108
130
const r = e.T() + t;
109
131
r <= 0 || r >= e.O() + e.t() - e.o() ? u.scrollTo({
@@ -112,7 +134,7 @@ index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b
112
134
behavior: "instant"
113
135
}) : u.scrollBy({
114
136
[l]: T(t, i),
115
-
@@ -283,7 +332,9 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
137
+
@@ -283,7 +336,9 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
116
138
}), r[1](!0);
117
139
},
118
140
_() {
@@ -123,7 +145,7 @@ index a183cc7b1669aab25467840540ce3bd1c025fb47..d960e2ea2a9435296756a64fe3a3773b
123
145
},
124
146
P: (e, t) => (d.set(e, t), h.A(e), () => {
125
147
d.delete(e), h.B(e);
126
-
@@ -797,4 +848,3 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
148
+
@@ -797,4 +852,3 @@ var {min: a, max: u, abs: d, floor: h} = Math, g = (e, t, n) => a(n, u(t, e)), v
0 commit comments