@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.
@@ -8757,7 +8757,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8757
8757
  },
8758
8758
  render_viewport: async function () {
8759
8759
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8760
- if (nodeP?.children?.length) {
8760
+ if (nodeP?.children?.length && !$div.children().length) {
8761
8761
  // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
8762
8762
  // setTimeout(async () => {
8763
8763
  for await (const [key, val] of Object.entries(nodeP.children)) {
@@ -14097,7 +14097,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14097
14097
  };
14098
14098
 
14099
14099
  const hover_in = function ($div, e) {
14100
- if (e && (is_skeleton || EXP_BUSY || UI_WORKER_OBJ.jobs.length)) return;
14100
+ if (is_skeleton || (e && (EXP_BUSY || UI_WORKER_OBJ.jobs.length))) return;
14101
14101
  CLIENT_ACTIVITY_TS = Date.now();
14102
14102
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
14103
14103
  if (!_ds) return;
@@ -14767,7 +14767,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14767
14767
  $(entry.target).trigger('outViewport');
14768
14768
 
14769
14769
  // Optional: stop observing once triggered
14770
- // observer_outViewport.unobserve(entry.target);
14770
+ observer_outViewport.unobserve(entry.target);
14771
14771
  }
14772
14772
  });
14773
14773
  },
@@ -14782,10 +14782,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
14782
14782
 
14783
14783
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
14784
14784
  $div.on('inViewport', function () {
14785
- if ($div.children().length) {
14786
- // const ui_id = $($div.children()[0]).attr('xu-ui-id');
14787
- return;
14788
- }
14785
+ if ($div.children().length) return;
14789
14786
 
14790
14787
  hover_in($div);
14791
14788
 
@@ -8758,7 +8758,7 @@ func.UI.worker.execute = async function (SESSION_ID, queue_obj) {
8758
8758
  },
8759
8759
  render_viewport: async function () {
8760
8760
  const { nodeP, $div, parent_infoP, $root_container, jobNoP, is_skeleton, paramsP, $container } = queue_obj?.paramsP || {};
8761
- if (nodeP?.children?.length) {
8761
+ if (nodeP?.children?.length && !$div.children().length) {
8762
8762
  // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
8763
8763
  // setTimeout(async () => {
8764
8764
  for await (const [key, val] of Object.entries(nodeP.children)) {
@@ -11805,7 +11805,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
11805
11805
  };
11806
11806
 
11807
11807
  const hover_in = function ($div, e) {
11808
- if (e && (is_skeleton || EXP_BUSY || UI_WORKER_OBJ.jobs.length)) return;
11808
+ if (is_skeleton || (e && (EXP_BUSY || UI_WORKER_OBJ.jobs.length))) return;
11809
11809
  CLIENT_ACTIVITY_TS = Date.now();
11810
11810
  if (_$($container)?.data()?.xuData?.debug_info) _$($container).data().xuData.debug_info.hover_item = $div.attr('xu-ui-id');
11811
11811
  if (!_ds) return;
@@ -12475,7 +12475,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12475
12475
  $(entry.target).trigger('outViewport');
12476
12476
 
12477
12477
  // Optional: stop observing once triggered
12478
- // observer_outViewport.unobserve(entry.target);
12478
+ observer_outViewport.unobserve(entry.target);
12479
12479
  }
12480
12480
  });
12481
12481
  },
@@ -12490,10 +12490,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
12490
12490
 
12491
12491
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
12492
12492
  $div.on('inViewport', function () {
12493
- if ($div.children().length) {
12494
- // const ui_id = $($div.children()[0]).attr('xu-ui-id');
12495
- return;
12496
- }
12493
+ if ($div.children().length) return;
12497
12494
 
12498
12495
  hover_in($div);
12499
12496