@xuda.io/runtime-bundle 1.0.798 → 1.0.800
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.
|
@@ -34379,7 +34379,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34379
34379
|
entries.forEach((entry) => {
|
|
34380
34380
|
if (entry.isIntersecting) {
|
|
34381
34381
|
// Element is in viewport - trigger custom event
|
|
34382
|
-
$(entry.target).trigger('
|
|
34382
|
+
$(entry.target).trigger('inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
34383
34383
|
|
|
34384
34384
|
// Optional: stop observing once triggered
|
|
34385
34385
|
observer.unobserve(entry.target);
|
|
@@ -34395,11 +34395,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
34395
34395
|
await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
34396
34396
|
};
|
|
34397
34397
|
|
|
34398
|
-
if (nodeP?.attributes?.['xu-viewport']
|
|
34399
|
-
$div.on('
|
|
34400
|
-
|
|
34401
|
-
iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
34398
|
+
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
34399
|
+
$div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
|
|
34400
|
+
render_child();
|
|
34401
|
+
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
34402
34402
|
});
|
|
34403
|
+
|
|
34403
34404
|
observer.observe($div[0]);
|
|
34404
34405
|
} else {
|
|
34405
34406
|
await render_child();
|