vlite3 1.5.41 → 1.5.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/CategoryManager/CategoryManager2.vue.js +2 -2
- package/components/Dropdown/DropdownMenu.vue.js +1 -1
- package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
- package/components/RichTextEditor/RichTextLinkPopover3.vue.js +2 -2
- package/components/RichTextEditor/RichTextToolbar3.vue.js +2 -2
- package/components/Screen/ScreenFilter.vue.js +2 -2
- package/directives/ScrollReveal/ScrollRevealPager.d.ts +4 -3
- package/directives/ScrollReveal/ScrollRevealPager.js +114 -93
- package/docs/ScrollRevealReleaseAudit.md +82 -0
- package/docs/components/scroll-reveal.md +17 -11
- package/docs-manifest.json +4 -4
- package/package.json +1 -1
- /package/components/Dropdown/{DropdownMenu3.vue.js → DropdownMenu2.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover2.vue.js} +0 -0
- /package/components/RichTextEditor/{RichTextToolbar.vue.js → RichTextToolbar2.vue.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as te, ref as v, shallowRef as ne, watch as oe, computed as h, onMounted as le, onUnmounted as ae, openBlock as C, createElementBlock as L, normalizeClass as re, toDisplayString as I, createCommentVNode as U, createElementVNode as w, createVNode as q, unref as a, normalizeStyle as ie } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import se from "./
|
|
4
|
-
/* empty css
|
|
5
|
-
import de from "./
|
|
6
|
-
/* empty css
|
|
3
|
+
import se from "./RichTextToolbar2.vue.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import de from "./RichTextLinkPopover2.vue.js";
|
|
6
|
+
/* empty css */
|
|
7
7
|
import { useRichTextImageUpload as ue } from "./composables/useRichTextImageUpload.js";
|
|
8
8
|
import { useRichTextLinks as ce } from "./composables/useRichTextLinks.js";
|
|
9
9
|
const fe = ["aria-labelledby", "aria-describedby"], me = ["id", "for"], ve = { class: "rte-wrapper" }, ye = { class: "rte-body-wrap" }, ge = ["id", "contenteditable", "aria-label", "aria-readonly", "aria-disabled", "aria-invalid"], be = ["id"], Se = /* @__PURE__ */ te({
|
|
@@ -5,11 +5,10 @@ export declare class ScrollRevealPager {
|
|
|
5
5
|
private desktop;
|
|
6
6
|
private listeners?;
|
|
7
7
|
private movement?;
|
|
8
|
-
private
|
|
9
|
-
private direction;
|
|
8
|
+
private wheel?;
|
|
10
9
|
private distance;
|
|
11
|
-
private wheelHoldUntil;
|
|
12
10
|
private readingElement?;
|
|
11
|
+
private readingEdge?;
|
|
13
12
|
private context;
|
|
14
13
|
constructor(context: ScrollRevealContext);
|
|
15
14
|
register(element: HTMLElement): void;
|
|
@@ -17,6 +16,7 @@ export declare class ScrollRevealPager {
|
|
|
17
16
|
private configure;
|
|
18
17
|
reset: () => void;
|
|
19
18
|
private cancel;
|
|
19
|
+
private wheelGesture;
|
|
20
20
|
private geometry;
|
|
21
21
|
private measureSection;
|
|
22
22
|
private measure;
|
|
@@ -25,6 +25,7 @@ export declare class ScrollRevealPager {
|
|
|
25
25
|
/** Child scroll owners win, including at a contained overscroll boundary. */
|
|
26
26
|
private nestedOwns;
|
|
27
27
|
private enabled;
|
|
28
|
+
private readingStep;
|
|
28
29
|
private destination;
|
|
29
30
|
private move;
|
|
30
31
|
private onWheel;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const p = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", g = [
|
|
2
2
|
"input",
|
|
3
3
|
"textarea",
|
|
4
4
|
"select",
|
|
@@ -38,18 +38,17 @@ const w = "(min-width: 1024px) and (hover: hover) and (pointer: fine)", g = [
|
|
|
38
38
|
"searchbox",
|
|
39
39
|
"scrollbar",
|
|
40
40
|
"application"
|
|
41
|
-
].map((
|
|
42
|
-
].join(", "), o = 2,
|
|
43
|
-
class
|
|
41
|
+
].map((u) => `[role~="${u}"]`)
|
|
42
|
+
].join(", "), o = 2, f = 12, x = 220;
|
|
43
|
+
class w {
|
|
44
44
|
sections = /* @__PURE__ */ new Set();
|
|
45
|
-
desktop = window.matchMedia(
|
|
45
|
+
desktop = window.matchMedia(p);
|
|
46
46
|
listeners;
|
|
47
47
|
movement;
|
|
48
|
-
|
|
49
|
-
direction = 0;
|
|
48
|
+
wheel;
|
|
50
49
|
distance = 0;
|
|
51
|
-
wheelHoldUntil = 0;
|
|
52
50
|
readingElement;
|
|
51
|
+
readingEdge;
|
|
53
52
|
context;
|
|
54
53
|
constructor(t) {
|
|
55
54
|
this.context = t, this.desktop.addEventListener("change", this.configure);
|
|
@@ -65,15 +64,28 @@ class b {
|
|
|
65
64
|
const t = this.sections.size >= 2 && this.desktop.matches;
|
|
66
65
|
if (!!this.listeners === t || (this.listeners?.abort(), this.listeners = void 0, !t)) return;
|
|
67
66
|
this.listeners = new AbortController();
|
|
68
|
-
const
|
|
69
|
-
|
|
67
|
+
const i = this.context.documentRoot ? window : this.context.container, s = { capture: !0, signal: this.listeners.signal };
|
|
68
|
+
i.addEventListener("wheel", this.onWheel, { ...s, passive: !1 }), i.addEventListener("keydown", this.onKeydown, s);
|
|
70
69
|
};
|
|
71
70
|
reset = () => {
|
|
72
|
-
this.cancel(), this.
|
|
71
|
+
this.cancel(), this.wheel = void 0, this.distance = 0, this.readingElement = void 0, this.readingEdge = void 0;
|
|
73
72
|
};
|
|
74
73
|
cancel() {
|
|
75
74
|
this.movement && (cancelAnimationFrame(this.movement.frame), this.movement = void 0);
|
|
76
75
|
}
|
|
76
|
+
wheelGesture(t, i) {
|
|
77
|
+
const s = Math.sign(t), n = Math.abs(t), e = this.wheel;
|
|
78
|
+
let h = 0, d = !e || s !== e.direction || i - e.lastAt >= x;
|
|
79
|
+
return e && !d && (e.decayTicks = n <= e.magnitude && n < e.peak ? e.decayTicks + 1 : 0, e.decayTicks >= 3 && n <= e.peak / 2 && (e.floor = Math.min(e.floor ?? n, n)), e.floor !== void 0 && (e.floor = Math.min(e.floor, n), e.renewed = n > e.magnitude && n >= e.floor * 2 ? e.renewed + n - e.floor : 0, d = e.renewed >= f, d && (h = s * Math.max(0, e.renewed - n))), e.lastAt = i, e.magnitude = n, e.peak = Math.max(e.peak, n)), !e || d ? (this.distance = h, this.readingEdge = void 0, this.wheel = {
|
|
80
|
+
lastAt: i,
|
|
81
|
+
direction: s,
|
|
82
|
+
magnitude: n,
|
|
83
|
+
peak: n,
|
|
84
|
+
decayTicks: 0,
|
|
85
|
+
renewed: 0,
|
|
86
|
+
consumed: !1
|
|
87
|
+
}, this.wheel) : e;
|
|
88
|
+
}
|
|
77
89
|
geometry() {
|
|
78
90
|
const t = this.context.viewport();
|
|
79
91
|
return {
|
|
@@ -84,158 +96,167 @@ class b {
|
|
|
84
96
|
limit: this.context.limit()
|
|
85
97
|
};
|
|
86
98
|
}
|
|
87
|
-
measureSection(t,
|
|
99
|
+
measureSection(t, i = this.geometry()) {
|
|
88
100
|
if (!t.isConnected) return;
|
|
89
|
-
const
|
|
90
|
-
if (!
|
|
91
|
-
const
|
|
92
|
-
return { element: t, start:
|
|
101
|
+
const s = t.getBoundingClientRect();
|
|
102
|
+
if (!s.height || !s.width) return;
|
|
103
|
+
const n = (h) => Math.max(0, Math.min(h, i.limit)), e = n(s.top - i.top + i.from - i.padding);
|
|
104
|
+
return { element: t, start: e, end: n(Math.max(e, s.bottom - i.bottom + i.from)) };
|
|
93
105
|
}
|
|
94
106
|
measure() {
|
|
95
107
|
const t = this.geometry();
|
|
96
|
-
return Array.from(this.sections).map((
|
|
108
|
+
return Array.from(this.sections).map((i) => this.measureSection(i, t)).filter((i) => !!i).sort((i, s) => i.start - s.start);
|
|
97
109
|
}
|
|
98
110
|
hasPagingStops() {
|
|
99
111
|
const t = this.geometry();
|
|
100
112
|
if (t.limit <= o) return !1;
|
|
101
|
-
let
|
|
102
|
-
for (const
|
|
103
|
-
if (this.measureSection(
|
|
113
|
+
let i = 0;
|
|
114
|
+
for (const s of this.sections)
|
|
115
|
+
if (this.measureSection(s, t) && ++i === 2) return !0;
|
|
104
116
|
return !1;
|
|
105
117
|
}
|
|
106
|
-
readWheel(t,
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
109
|
-
this.readingElement = t.element, this.
|
|
110
|
-
const
|
|
111
|
-
return
|
|
118
|
+
readWheel(t, i, s, n) {
|
|
119
|
+
const e = this.context.position();
|
|
120
|
+
if (e < t.start - o || e > t.end + o || (i > 0 ? e >= t.end - o : e <= t.start + o)) return !1;
|
|
121
|
+
this.readingElement = t.element, this.distance = 0;
|
|
122
|
+
const h = this.readingStep(), d = e + Math.max(-h, Math.min(s, h)), c = d >= t.end || d <= t.start;
|
|
123
|
+
return n.preventDefault(), this.context.write(Math.max(t.start, Math.min(d, t.end))), c && (this.readingEdge = { element: t.element, direction: i }, this.wheel && (this.wheel.consumed = !0)), !0;
|
|
112
124
|
}
|
|
113
125
|
/** Child scroll owners win, including at a contained overscroll boundary. */
|
|
114
|
-
nestedOwns(t,
|
|
115
|
-
for (const
|
|
116
|
-
if (
|
|
117
|
-
if (!(
|
|
118
|
-
if (t.type === "wheel" &&
|
|
119
|
-
const
|
|
120
|
-
if (!/^(auto|scroll|overlay)$/.test(
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
126
|
+
nestedOwns(t, i) {
|
|
127
|
+
for (const s of t.composedPath()) {
|
|
128
|
+
if (s === this.context.container || s === document.body || s === document.documentElement) break;
|
|
129
|
+
if (!(s instanceof HTMLElement)) continue;
|
|
130
|
+
if (t.type === "wheel" && s.getAttribute("data-vlite-wheel-directions")?.split(" ").includes(i > 0 ? "down" : "up")) return !0;
|
|
131
|
+
const n = getComputedStyle(s);
|
|
132
|
+
if (!/^(auto|scroll|overlay)$/.test(n.overflowY)) continue;
|
|
133
|
+
const e = i > 0 ? s.scrollTop + s.clientHeight < s.scrollHeight - 1 : s.scrollTop > 0;
|
|
134
|
+
if (s.scrollHeight > s.clientHeight && e || /^(contain|none)$/.test(n.overscrollBehaviorY)) return !0;
|
|
123
135
|
}
|
|
124
136
|
return !1;
|
|
125
137
|
}
|
|
126
138
|
enabled() {
|
|
127
139
|
if (document.hidden || !this.desktop.matches) return !1;
|
|
128
|
-
const { container: t, documentRoot:
|
|
129
|
-
return ![t, ...
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
140
|
+
const { container: t, documentRoot: i } = this.context;
|
|
141
|
+
return ![t, ...i ? [document.body] : []].some((s) => /^(hidden|clip)$/.test(getComputedStyle(s).overflowY));
|
|
142
|
+
}
|
|
143
|
+
readingStep() {
|
|
144
|
+
const t = this.context.viewport();
|
|
145
|
+
return Math.max(48, t.bottom - t.top - this.context.padding() - 48);
|
|
146
|
+
}
|
|
147
|
+
destination(t, i, s) {
|
|
148
|
+
const n = this.context.position();
|
|
149
|
+
let e, h, d;
|
|
150
|
+
for (const m of s)
|
|
151
|
+
if (m.start <= n + o && (e = m), m.start < n - o && (h = m), m.start > n + o) {
|
|
152
|
+
d = m;
|
|
137
153
|
break;
|
|
138
154
|
}
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
if (
|
|
155
|
+
const c = e && e.end > e.start + o && n <= e.end + o, r = this.readingStep();
|
|
156
|
+
let a, l;
|
|
157
|
+
if (i && c && (t > 0 ? n < e.end - o : n > e.start + o) ? (l = e, a = Math.min(e.end, Math.max(e.start, n + t * r))) : (l = t > 0 ? d : h, a = l ? t > 0 ? l.start : l.end : t > 0 ? this.context.limit() : 0), !(Math.abs(a - n) <= o))
|
|
142
158
|
return {
|
|
143
|
-
position:
|
|
144
|
-
element:
|
|
145
|
-
progress:
|
|
146
|
-
atEnd: !
|
|
159
|
+
position: a,
|
|
160
|
+
element: l?.element,
|
|
161
|
+
progress: l && l.end > l.start ? (a - l.start) / (l.end - l.start) : 0,
|
|
162
|
+
atEnd: !l && t > 0
|
|
147
163
|
};
|
|
148
164
|
}
|
|
149
|
-
move(t,
|
|
165
|
+
move(t, i) {
|
|
150
166
|
this.cancel(), this.readingElement = void 0;
|
|
151
|
-
const
|
|
152
|
-
this.movement =
|
|
153
|
-
const
|
|
154
|
-
if (this.movement !==
|
|
155
|
-
const
|
|
156
|
-
(!t.element ||
|
|
167
|
+
const s = this.context.position(), n = { frame: 0, direction: i };
|
|
168
|
+
this.movement = n;
|
|
169
|
+
const e = () => {
|
|
170
|
+
if (this.movement !== n) return;
|
|
171
|
+
const r = t.element && this.sections.has(t.element) ? this.measureSection(t.element) : void 0, a = r ? r.start + (r.end - r.start) * t.progress : t.atEnd ? this.context.limit() : Math.min(t.position, this.context.limit());
|
|
172
|
+
(!t.element || r) && Math.abs(a - this.context.position()) > o && this.context.write(a), this.movement = void 0, this.distance = 0, r && r.end > r.start + o && (this.readingElement = r.element);
|
|
157
173
|
};
|
|
158
174
|
if (this.context.reducedMotion.matches) {
|
|
159
|
-
this.context.write(t.position),
|
|
175
|
+
this.context.write(t.position), e();
|
|
160
176
|
return;
|
|
161
177
|
}
|
|
162
|
-
const
|
|
163
|
-
if (this.movement !==
|
|
164
|
-
if (document.hidden || window.location.href !==
|
|
178
|
+
const h = window.location.href, d = performance.now(), c = (r) => {
|
|
179
|
+
if (this.movement !== n) return;
|
|
180
|
+
if (document.hidden || window.location.href !== h || t.element && !t.element.isConnected) {
|
|
165
181
|
this.reset();
|
|
166
182
|
return;
|
|
167
183
|
}
|
|
168
|
-
const
|
|
169
|
-
this.context.write(
|
|
184
|
+
const a = Math.min(1, (r - d) / 850);
|
|
185
|
+
this.context.write(s + (t.position - s) * (1 - (1 - a) ** 3)), a < 1 ? n.frame = requestAnimationFrame(c) : e();
|
|
170
186
|
};
|
|
171
|
-
|
|
187
|
+
n.frame = requestAnimationFrame(c);
|
|
172
188
|
}
|
|
173
189
|
onWheel = (t) => {
|
|
174
190
|
if (this.context.syncNavigation(), !this.enabled() || !t.cancelable || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey || t.shiftKey || !Number.isFinite(t.deltaY) || !Number.isFinite(t.deltaX) || !t.deltaY || Math.abs(t.deltaX) > Math.abs(t.deltaY)) {
|
|
175
191
|
this.movement && this.reset();
|
|
176
192
|
return;
|
|
177
193
|
}
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
180
|
-
|
|
194
|
+
const i = Math.sign(t.deltaY), s = t.deltaMode === 1 ? 16 : t.deltaMode === 2 ? Math.max(1, this.context.viewport().bottom - this.context.viewport().top - this.context.padding()) : 1, n = t.deltaY * s;
|
|
195
|
+
if (!Number.isFinite(n)) return;
|
|
196
|
+
const e = this.wheelGesture(n, performance.now());
|
|
197
|
+
if (this.nestedOwns(t, i)) {
|
|
198
|
+
this.cancel(), e.consumed = !0, this.distance = 0;
|
|
181
199
|
return;
|
|
182
200
|
}
|
|
183
201
|
if (!this.hasPagingStops()) {
|
|
184
202
|
this.reset();
|
|
185
203
|
return;
|
|
186
204
|
}
|
|
187
|
-
|
|
188
|
-
|
|
205
|
+
if (this.readingEdge) {
|
|
206
|
+
const c = this.readingEdge, r = this.measureSection(c.element), a = this.context.position();
|
|
207
|
+
r && (c.direction > 0 ? Math.abs(a - r.end) <= o : Math.abs(a - r.start) <= o) || (e.consumed = !1, this.readingEdge = void 0);
|
|
208
|
+
}
|
|
209
|
+
if (e.consumed) {
|
|
189
210
|
t.preventDefault();
|
|
190
211
|
return;
|
|
191
212
|
}
|
|
192
|
-
if (this.
|
|
193
|
-
t.preventDefault(),
|
|
213
|
+
if (this.movement?.direction === i) {
|
|
214
|
+
t.preventDefault(), e.consumed = !0, this.distance = 0;
|
|
194
215
|
return;
|
|
195
216
|
}
|
|
196
217
|
if (!this.movement && this.readingElement) {
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
218
|
+
const c = this.measureSection(this.readingElement);
|
|
219
|
+
if (c && this.readWheel(c, i, n, t)) return;
|
|
199
220
|
this.readingElement = void 0;
|
|
200
221
|
}
|
|
201
|
-
if (Math.sign(this.distance) !==
|
|
222
|
+
if (Math.sign(this.distance) !== i && (this.distance = 0), this.distance += n, Math.abs(this.distance) < f) {
|
|
202
223
|
t.preventDefault();
|
|
203
224
|
return;
|
|
204
225
|
}
|
|
205
|
-
const
|
|
206
|
-
if (
|
|
226
|
+
const h = this.measure();
|
|
227
|
+
if (h.length < 2) return;
|
|
207
228
|
if (!this.movement) {
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
229
|
+
const c = this.context.position(), r = h.find((a) => c >= a.start - o && c <= a.end + o && (i > 0 ? c < a.end - o : c > a.start + o));
|
|
230
|
+
if (r && this.readWheel(r, i, this.distance, t)) return;
|
|
210
231
|
}
|
|
211
|
-
const
|
|
212
|
-
if (!
|
|
232
|
+
const d = this.destination(i, !1, h);
|
|
233
|
+
if (!d) {
|
|
213
234
|
this.distance = 0;
|
|
214
235
|
return;
|
|
215
236
|
}
|
|
216
|
-
t.preventDefault(), this.
|
|
237
|
+
t.preventDefault(), this.distance = 0, e.consumed = !0, this.move(d, i);
|
|
217
238
|
};
|
|
218
239
|
onKeydown = (t) => {
|
|
219
240
|
if (this.context.syncNavigation(), !this.enabled() || t.defaultPrevented || t.ctrlKey || t.metaKey || t.altKey) return;
|
|
220
|
-
const
|
|
221
|
-
if (!
|
|
241
|
+
const i = t.key === "PageDown" || t.key === " " && !t.shiftKey ? 1 : t.key === "PageUp" || t.key === " " && t.shiftKey ? -1 : 0;
|
|
242
|
+
if (!i) {
|
|
222
243
|
["ArrowUp", "ArrowDown", "Home", "End", "Tab", "Escape"].includes(t.key) && this.reset();
|
|
223
244
|
return;
|
|
224
245
|
}
|
|
225
|
-
for (const
|
|
226
|
-
if (
|
|
227
|
-
if (
|
|
246
|
+
for (const e of t.composedPath()) {
|
|
247
|
+
if (e === this.context.container) break;
|
|
248
|
+
if (e instanceof Element && (e.matches(g) || e.hasAttribute("tabindex") && Number(e.getAttribute("tabindex")) >= 0)) return;
|
|
228
249
|
}
|
|
229
|
-
if (this.nestedOwns(t,
|
|
230
|
-
const
|
|
231
|
-
if (
|
|
232
|
-
const
|
|
233
|
-
|
|
250
|
+
if (this.nestedOwns(t, i) || this.context.limit() <= o) return;
|
|
251
|
+
const s = this.measure();
|
|
252
|
+
if (s.length < 2) return;
|
|
253
|
+
const n = this.destination(i, !0, s);
|
|
254
|
+
n && (t.preventDefault(), !(t.repeat || this.movement?.direction === i) && (this.reset(), this.move(n, i)));
|
|
234
255
|
};
|
|
235
256
|
destroy() {
|
|
236
257
|
this.reset(), this.listeners?.abort(), this.desktop.removeEventListener("change", this.configure), this.sections.clear();
|
|
237
258
|
}
|
|
238
259
|
}
|
|
239
260
|
export {
|
|
240
|
-
|
|
261
|
+
w as ScrollRevealPager
|
|
241
262
|
};
|
|
@@ -87,3 +87,85 @@ again requires actual vertical overflow. The regression suite checks that an
|
|
|
87
87
|
auto-overflow wrapper without vertical range resolves to the document, and
|
|
88
88
|
becomes eligible after vertical growth. Async growth requires a Vue update to
|
|
89
89
|
transfer existing registrations. This supersedes the earlier ownership finding.
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## Tall-section content preservation — 2026-11-02
|
|
93
|
+
|
|
94
|
+
The player section's lower feature cards are inside its registered stop. The
|
|
95
|
+
pager previously delegated middle-of-section wheel events to the browser,
|
|
96
|
+
leaving asynchronous/accelerated native scrolling able to pass the reading
|
|
97
|
+
boundary; the fixed hold also released long momentum after 220ms. Reverse
|
|
98
|
+
entry selected the previous heading, skipping its lower reading content.
|
|
99
|
+
|
|
100
|
+
Accepted wheel events now move progressively within the current section's
|
|
101
|
+
measured start/end. Every reading tick is prevented and written once, bounded
|
|
102
|
+
to one viewport step with overlap. Arrival retains the measured section as
|
|
103
|
+
the reading owner. Reverse entry targets the previous section's bottom. At
|
|
104
|
+
a reading edge, further same-direction input is absorbed until 220ms of idle
|
|
105
|
+
separates a fresh gesture. Reversal, keyboard input, lifecycle resets and a
|
|
106
|
+
changed reading range release this edge state. Short-section paging keeps its
|
|
107
|
+
existing bounded hold. No timers, extra listeners or animation loop added.
|
|
108
|
+
|
|
109
|
+
All 30 focused tests pass, including full down/up reading sequences, oversized
|
|
110
|
+
deltas, long momentum tails, idle restart, reversal, late content growth,
|
|
111
|
+
keyboard and reduced motion. `git diff --check` passes. The earlier continuous
|
|
112
|
+
tiny-hero test now requires the 10px remainder to be shown and a fresh gesture
|
|
113
|
+
to leave it, matching the requested boundary contract.
|
|
114
|
+
|
|
115
|
+
No build or physical-browser/trackpad check was performed for this change.
|
|
116
|
+
Non-cancelable/native-owned gestures, touch and narrow layouts still follow
|
|
117
|
+
the existing native fallback; JavaScript cannot cancel a non-cancelable event.
|
|
118
|
+
Gesture separation is based on wheel-event idle, not a hardware momentum flag.
|
|
119
|
+
This supersedes earlier descriptions of native middle-of-section reading and
|
|
120
|
+
bounded momentum release specifically at tall-section reading edges.
|
|
121
|
+
|
|
122
|
+
## Wheel re-arming correction — 2026-11-02
|
|
123
|
+
|
|
124
|
+
Source review found two different release policies: animation completion started
|
|
125
|
+
a new 220ms hold, while a tall-section edge required a full 220ms wheel-event gap.
|
|
126
|
+
Every momentum tick updated the timestamp used by the edge's idle check. A new
|
|
127
|
+
same-direction impulse embedded in that tail could therefore remain trapped.
|
|
128
|
+
Conversely, the short-section deadline eventually let an uninterrupted tail page
|
|
129
|
+
again. There is no pointer-move listener in the pager or its coordinator; this
|
|
130
|
+
review does not establish why pointer movement changed the observed browser input.
|
|
131
|
+
|
|
132
|
+
The pager now owns one wheel-gesture record with a consumed flag for section
|
|
133
|
+
movement, nested ownership and tall-section boundaries. Completion clears active
|
|
134
|
+
movement and buffered distance without starting a cooldown. Idle remains measured
|
|
135
|
+
from the last eligible wheel event, including time during animation. Reversal or
|
|
136
|
+
idle starts a fresh gesture. Without idle, three non-increasing samples reaching
|
|
137
|
+
half the gesture peak establish a tail baseline; renewed accelerating input at
|
|
138
|
+
least twice that baseline accumulates 12 normalized pixels of excess intent to
|
|
139
|
+
start a fresh gesture. The earned intent is reused by the existing paging threshold.
|
|
140
|
+
Constant/decreasing tails and elevated plateaus do not accumulate new intent.
|
|
141
|
+
|
|
142
|
+
Source audit:
|
|
143
|
+
|
|
144
|
+
- Correctness: fresh gesture detection precedes consumption checks; both tall
|
|
145
|
+
boundaries and short stops share it. In-flight same-direction input is consumed
|
|
146
|
+
without a queue. Reverse input still uses the existing cancellation path.
|
|
147
|
+
- Lifecycle: reset drops the entire gesture record, reading state and animation.
|
|
148
|
+
Existing navigation, visibility, resize, registration and teardown resets remain
|
|
149
|
+
connected. No timer, pointer listener or asynchronous unlock was added.
|
|
150
|
+
- Content and accessibility: progressive reading, live range-growth recovery,
|
|
151
|
+
keyboard navigation, focus ownership, reduced motion and native input exclusions
|
|
152
|
+
retain their existing paths. Nested scrollers retain first refusal.
|
|
153
|
+
- Performance: gesture recognition uses constant space and constant work per tick;
|
|
154
|
+
no sample history, new geometry scan or additional animation loop was introduced.
|
|
155
|
+
This is per-container client state, with no server, persistence or cross-user data.
|
|
156
|
+
- Validation: finite wheel input is retained, with an additional finite check after
|
|
157
|
+
line/page normalization. No new external input or security surface was added.
|
|
158
|
+
|
|
159
|
+
Regression sources now cover immediate renewed pressure after completion, idle
|
|
160
|
+
that elapsed during animation, gentle acceleration, extended tails/plateaus,
|
|
161
|
+
variable uninterrupted streams, consumed input during movement, reduced motion,
|
|
162
|
+
and immediate renewed input at both tall-section edges. Prior expectations that
|
|
163
|
+
continuous input must eventually advance were replaced with one-gesture protection.
|
|
164
|
+
|
|
165
|
+
Validation for this correction is source review and `git diff --check` only.
|
|
166
|
+
Tests were authored but not executed. No build, typecheck, lint, codegen, dev server
|
|
167
|
+
or computer use was run, following the repository's explicit-approval rule. Earlier
|
|
168
|
+
test-pass statements in this audit describe earlier revisions, not this correction.
|
|
169
|
+
Gesture classification remains a delta-based heuristic: indistinguishable wheel
|
|
170
|
+
streams cannot be separated by physical intent, and a strong irregular momentum
|
|
171
|
+
spike can resemble renewed input. Device/browser trackpad acceptance remains open.
|
|
@@ -105,17 +105,23 @@ scrolling is native. Touch input is always native; no touchmove listener is used
|
|
|
105
105
|
|
|
106
106
|
- Deliberate vertical wheel intent accumulates before advancing to the next stop.
|
|
107
107
|
Short sections align their top after the scroller's effective `scroll-padding-top`.
|
|
108
|
-
- Tall sections retain
|
|
109
|
-
|
|
108
|
+
- Tall sections retain progressive reading between their start and end. The pager
|
|
109
|
+
consumes accepted vertical wheel ticks and clamps each movement to that range,
|
|
110
|
+
with at most one viewport-sized step (48px overlap). Downward entry aligns the
|
|
111
|
+
top; upward entry aligns the bottom, then reads toward the top.
|
|
112
|
+
At a reading boundary, same-direction momentum remains held until a fresh
|
|
113
|
+
gesture. Reversal and keyboard navigation
|
|
114
|
+
remain available immediately. Late content growth extends the reading range.
|
|
110
115
|
- A transition owns one destination; input during movement cannot queue pages.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
Completion adds no wheel cooldown. Section transitions and tall-section edges
|
|
117
|
+
share one gesture guard: an idle gap of 220ms, reversal, or renewed pressure
|
|
118
|
+
after a decaying tail starts a fresh gesture. Idle is measured from the last
|
|
119
|
+
wheel event, including time spent animating, rather than from completion.
|
|
120
|
+
Renewed pressure accumulates above the tail baseline toward 12px of intent;
|
|
121
|
+
constant or decreasing tails cannot advance another section just because time
|
|
122
|
+
passed. No cursor movement or pointer event is required to resume.
|
|
123
|
+
Tail recognition uses normalized wheel deltas and is heuristic; physical
|
|
124
|
+
trackpad behavior still needs verification on the target browser/device.
|
|
119
125
|
- PageDown, PageUp, Space and Shift+Space page between stops, using viewport-sized
|
|
120
126
|
reading steps inside tall sections. Held-key repeats do not chain transitions.
|
|
121
127
|
Form controls, links, contenteditable, ARIA widgets and focusable controls retain
|
|
@@ -140,7 +146,7 @@ reassign the owner.
|
|
|
140
146
|
|
|
141
147
|
Wheel input first checks that two rendered stops remain available, stopping the eligibility scan
|
|
142
148
|
as soon as two are found. Full section geometry is measured after deliberate intent for navigation decisions, never across every RAF
|
|
143
|
-
frame.
|
|
149
|
+
frame. Tall-section reading remeasures its current section on wheel input. Movement writes only scroll position and corrects its original target once
|
|
144
150
|
after settlement if layout shifted. Reveal and paging state are separate inside
|
|
145
151
|
the shared coordinator.
|
|
146
152
|
|
package/docs-manifest.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"managedBy": "vlite3",
|
|
3
3
|
"manifestVersion": 1,
|
|
4
4
|
"packageName": "vlite3",
|
|
5
|
-
"packageVersion": "1.5.
|
|
6
|
-
"generatedAt": "2026-11-02T14:
|
|
5
|
+
"packageVersion": "1.5.43",
|
|
6
|
+
"generatedAt": "2026-11-02T14:30:05.209Z",
|
|
7
7
|
"files": {
|
|
8
8
|
"component-index.md": {
|
|
9
9
|
"sha256": "2a8a3c18e4b9158ff62eaf23c3aae82b2aee7e10fca9b78f9a6d573ff9b13c61"
|
|
@@ -243,7 +243,7 @@
|
|
|
243
243
|
"sha256": "d6f355061d35552dbfcebde53088bafdaaafbe9934ed3fc9286d39e60348b64b"
|
|
244
244
|
},
|
|
245
245
|
"components/scroll-reveal.md": {
|
|
246
|
-
"sha256": "
|
|
246
|
+
"sha256": "bf89131d27bd215ad23e0b7837e95fef789973341074d730a1968fa5e2869d89"
|
|
247
247
|
},
|
|
248
248
|
"components/seo-provider.md": {
|
|
249
249
|
"sha256": "ee4ef9991f025ddc6e6a11180d9acce6bbe87d86d5e746da70164260734b983e"
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
"sha256": "115099e4c2fd179fef86430f5c376b8a58f1f0dab5d7c493a6e0c77485845268"
|
|
340
340
|
},
|
|
341
341
|
"ScrollRevealReleaseAudit.md": {
|
|
342
|
-
"sha256": "
|
|
342
|
+
"sha256": "a2e9b8a9b479f13e094c04dee7405d534cc039155c62195e9662650113ccc9ce"
|
|
343
343
|
},
|
|
344
344
|
"utilities/search.md": {
|
|
345
345
|
"sha256": "a3e597b3d0a8da8e4ab3a8537231b19149cda48f204ad5cce36860988341e281"
|
package/package.json
CHANGED
|
File without changes
|
/package/components/RichTextEditor/{RichTextLinkPopover.vue.js → RichTextLinkPopover2.vue.js}
RENAMED
|
File without changes
|
|
File without changes
|