@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.
@@ -34379,7 +34379,8 @@ 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
+ console.log('trigger>>', 'inViewport_' + $(entry.target).attr('xu-ui-id'));
34383
+ $(entry.target).trigger('inViewport_' + $(entry.target).attr('xu-ui-id'));
34383
34384
 
34384
34385
  // Optional: stop observing once triggered
34385
34386
  observer.unobserve(entry.target);
@@ -34396,11 +34397,12 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34396
34397
  };
34397
34398
 
34398
34399
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34399
- $div.on('inViewport', function () {
34400
+ console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
34401
+ $div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
34400
34402
  render_child();
34401
34403
  // iterate_child($div, nodeP, parent_infoP, null, $root_container);
34402
34404
  });
34403
- await iterate_child($('<div>'), nodeP, parent_infoP, null, $root_container);
34405
+
34404
34406
  observer.observe($div[0]);
34405
34407
  } else {
34406
34408
  await render_child();