@xuda.io/runtime-bundle 1.0.842 → 1.0.844

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.
@@ -27847,7 +27847,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
27847
27847
  },
27848
27848
  render_viewport: async function () {
27849
27849
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
27850
- if (nodeP?.children?.length) {
27850
+ if (nodeP?.children?.length && !$div.children().length) {
27851
27851
  // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
27852
27852
  // setTimeout(async () => {
27853
27853
  for await (const [key, val] of Object.entries(nodeP.children)) {
@@ -33764,7 +33764,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
33764
33764
  };
33765
33765
 
33766
33766
  const hover_in = function ($div, e) {
33767
- if (e && (is_skeleton || EXP_BUSY || UI_WORKER_OBJ.jobs.length)) return;
33767
+ if (is_skeleton || (e && (EXP_BUSY || UI_WORKER_OBJ.jobs.length))) return;
33768
33768
  CLIENT_ACTIVITY_TS = Date.now();
33769
33769
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
33770
33770
  if (!_ds) return;
@@ -34434,7 +34434,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34434
34434
  $(entry.target).trigger('outViewport');
34435
34435
 
34436
34436
  // Optional: stop observing once triggered
34437
- // observer_outViewport.unobserve(entry.target);
34437
+ observer_outViewport.unobserve(entry.target);
34438
34438
  }
34439
34439
  });
34440
34440
  },
@@ -34449,10 +34449,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34449
34449
 
34450
34450
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34451
34451
  $div.on('inViewport', function () {
34452
- if ($div.children().length) {
34453
- // const ui_id = $($div.children()[0]).attr('xu-ui-id');
34454
- return;
34455
- }
34452
+ if ($div.children().length) return;
34456
34453
 
34457
34454
  hover_in($div);
34458
34455