@xuda.io/runtime-bundle 1.0.839 → 1.0.840

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.
@@ -34448,23 +34448,22 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
34448
34448
  // };
34449
34449
 
34450
34450
  if (nodeP?.attributes?.['xu-viewport'] == 'true') {
34451
- // console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
34452
- // $div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
34453
34451
  $div.on('inViewport', function () {
34454
- if ($div.children().length) return;
34452
+ if ($div.children().length) {
34453
+ const ui_id = $($div.children()[0]).attr('xu-ui-id');
34454
+ return;
34455
+ }
34455
34456
 
34456
34457
  hover_in($div);
34457
34458
 
34458
- // func.UI.screen.hover_in(SESSION_ID, $div, $container, paramsP, is_skeleton);
34459
34459
  func.UI.worker.add_to_queue(SESSION_ID, 'gui event', 'render_viewport', { $div, nodeP, parent_infoP, $root_container, paramsP, jobNoP, is_skeleton, keyP, refreshed_ds, parent_nodeP, check_existP, $container }, null, null, paramsP.dsSessionP);
34460
- // render_child();
34461
- // iterate_child($div, nodeP, parent_infoP, null, $root_container);
34460
+
34462
34461
  observer_outViewport.observe($div[0]);
34463
34462
  });
34464
34463
 
34465
34464
  $div.on('outViewport', function () {
34466
- // $div.empty();
34467
- // observer_inViewport.observe($div[0]);
34465
+ $div.empty();
34466
+ observer_inViewport.observe($div[0]);
34468
34467
  });
34469
34468
 
34470
34469
  observer_inViewport.observe($div[0]);