@xuda.io/runtime-bundle 1.0.799 → 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('inViewport');
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);
@@ -34396,11 +34396,11 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34396
34396
  };
34397
34397
 
34398
34398
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34399
- $div.on('inViewport', function () {
34399
+ $div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
34400
34400
  render_child();
34401
34401
  // iterate_child($div, nodeP, parent_infoP, null, $root_container);
34402
34402
  });
34403
- await iterate_child($('<div>'), nodeP, parent_infoP, null, $root_container);
34403
+
34404
34404
  observer.observe($div[0]);
34405
34405
  } else {
34406
34406
  await render_child();