@xuda.io/runtime-bundle 1.0.798 → 1.0.799
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
|
@@ -14728,11 +14728,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14728
14728
|
await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14729
14729
|
};
|
|
14730
14730
|
|
|
14731
|
-
if (nodeP?.attributes?.['xu-viewport']
|
|
14731
|
+
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14732
14732
|
$div.on('inViewport', function () {
|
|
14733
|
-
|
|
14734
|
-
iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14733
|
+
render_child();
|
|
14734
|
+
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
14735
14735
|
});
|
|
14736
|
+
await iterate_child($('<div>'), nodeP, parent_infoP, null, $root_container);
|
|
14736
14737
|
observer.observe($div[0]);
|
|
14737
14738
|
} else {
|
|
14738
14739
|
await render_child();
|
|
@@ -12436,11 +12436,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12436
12436
|
await iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12437
12437
|
};
|
|
12438
12438
|
|
|
12439
|
-
if (nodeP?.attributes?.['xu-viewport']
|
|
12439
|
+
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12440
12440
|
$div.on('inViewport', function () {
|
|
12441
|
-
|
|
12442
|
-
iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12441
|
+
render_child();
|
|
12442
|
+
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
12443
12443
|
});
|
|
12444
|
+
await iterate_child($('<div>'), nodeP, parent_infoP, null, $root_container);
|
|
12444
12445
|
observer.observe($div[0]);
|
|
12445
12446
|
} else {
|
|
12446
12447
|
await render_child();
|