@vectoriox/iox-ui 5.167.0 → 5.168.0
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/actions-core/index.d.ts +8 -2
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs +10 -4
- package/fesm2022/vectoriox-iox-ui-actions-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs +1 -6
- package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
- package/fesm2022/vectoriox-iox-ui.mjs +12 -2
- package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
- package/generation-core/index.d.ts +1 -6
- package/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/actions-core/popup-arrival.ts +13 -4
- package/src/generation-core/site-spec.generated.ts +1 -6
|
@@ -13666,6 +13666,9 @@ class PopupRuntime {
|
|
|
13666
13666
|
on(this.win, 'keydown', e => { if (SCROLL_KEYS.has(e.key))
|
|
13667
13667
|
input(); this.onKey(e); });
|
|
13668
13668
|
on(this.win, 'scroll', () => this.onScroll(), { passive: true });
|
|
13669
|
+
// PU2b leaving: the mouse goes out through the TOP of the window (towards the tabs or the address bar) — only a
|
|
13670
|
+
// laptop's plan ever reads it (planPopupArrival), so a touch's synthetic mouse events change nothing.
|
|
13671
|
+
on(this.doc, 'mouseout', e => this.onMouseOut(e));
|
|
13669
13672
|
if (this.pending.length)
|
|
13670
13673
|
this.timer = setInterval(() => this.tick(TICK_MS), TICK_MS);
|
|
13671
13674
|
}
|
|
@@ -13676,6 +13679,13 @@ class PopupRuntime {
|
|
|
13676
13679
|
c.scrolledPx = Math.max(c.scrolledPx, Math.abs(this.scrollY() - c.baselineY));
|
|
13677
13680
|
this.tick();
|
|
13678
13681
|
}
|
|
13682
|
+
onMouseOut(e) {
|
|
13683
|
+
const c = this.clock;
|
|
13684
|
+
if (!c || e.relatedTarget || e.clientY > 0 || this.doc.visibilityState === 'hidden')
|
|
13685
|
+
return;
|
|
13686
|
+
c.leftTopAtSeconds = c.visibleMs / 1000;
|
|
13687
|
+
this.tick();
|
|
13688
|
+
}
|
|
13679
13689
|
onKey(e) {
|
|
13680
13690
|
if (e.key !== 'Escape')
|
|
13681
13691
|
return;
|
|
@@ -13710,7 +13720,7 @@ class PopupRuntime {
|
|
|
13710
13720
|
}
|
|
13711
13721
|
if (this.clock?.id !== id) {
|
|
13712
13722
|
// The turn starts NOW: time counts from here, a scroll must come after it.
|
|
13713
|
-
this.clock = { id, baselineY: this.scrollY(), scrolledPx: 0, visibleMs: 0, userInput: false };
|
|
13723
|
+
this.clock = { id, baselineY: this.scrollY(), scrolledPx: 0, visibleMs: 0, userInput: false, leftTopAtSeconds: null };
|
|
13714
13724
|
elapsedMs = 0;
|
|
13715
13725
|
}
|
|
13716
13726
|
if (this.doc.visibilityState !== 'hidden')
|
|
@@ -13719,7 +13729,7 @@ class PopupRuntime {
|
|
|
13719
13729
|
const fired = arrivalFired(p.plan, {
|
|
13720
13730
|
scrolledPx: this.clock.scrolledPx, scrollY: this.scrollY(),
|
|
13721
13731
|
viewportHeight: this.win?.innerHeight ?? 0, pageHeight: this.doc.documentElement.scrollHeight,
|
|
13722
|
-
visibleSeconds: this.clock.visibleMs / 1000,
|
|
13732
|
+
visibleSeconds: this.clock.visibleMs / 1000, leftTopAtSeconds: this.clock.leftTopAtSeconds,
|
|
13723
13733
|
});
|
|
13724
13734
|
if (fired)
|
|
13725
13735
|
this.arrive(p);
|