@xuda.io/runtime-bundle 1.0.799 → 1.0.801
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/js/xuda-runtime-slim.js
CHANGED
|
@@ -14712,7 +14712,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14712
14712
|
entries.forEach((entry) => {
|
|
14713
14713
|
if (entry.isIntersecting) {
|
|
14714
14714
|
// Element is in viewport - trigger custom event
|
|
14715
|
-
$(entry.target).
|
|
14715
|
+
console.log('trigger>>', 'inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
14716
|
+
$(entry.target).trigger('inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
14716
14717
|
|
|
14717
14718
|
// Optional: stop observing once triggered
|
|
14718
14719
|
observer.unobserve(entry.target);
|
|
@@ -14729,11 +14730,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14729
14730
|
};
|
|
14730
14731
|
|
|
14731
14732
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14732
|
-
|
|
14733
|
+
console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
|
|
14734
|
+
$div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
|
|
14733
14735
|
render_child();
|
|
14734
14736
|
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14735
14737
|
});
|
|
14736
|
-
|
|
14738
|
+
|
|
14737
14739
|
observer.observe($div[0]);
|
|
14738
14740
|
} else {
|
|
14739
14741
|
await render_child();
|
|
@@ -12420,7 +12420,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12420
12420
|
entries.forEach((entry) => {
|
|
12421
12421
|
if (entry.isIntersecting) {
|
|
12422
12422
|
// Element is in viewport - trigger custom event
|
|
12423
|
-
$(entry.target).
|
|
12423
|
+
console.log('trigger>>', 'inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
12424
|
+
$(entry.target).trigger('inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
12424
12425
|
|
|
12425
12426
|
// Optional: stop observing once triggered
|
|
12426
12427
|
observer.unobserve(entry.target);
|
|
@@ -12437,11 +12438,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12437
12438
|
};
|
|
12438
12439
|
|
|
12439
12440
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12440
|
-
|
|
12441
|
+
console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
|
|
12442
|
+
$div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
|
|
12441
12443
|
render_child();
|
|
12442
12444
|
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12443
12445
|
});
|
|
12444
|
-
|
|
12446
|
+
|
|
12445
12447
|
observer.observe($div[0]);
|
|
12446
12448
|
} else {
|
|
12447
12449
|
await render_child();
|