@xuda.io/runtime-bundle 1.0.800 → 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,6 +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
|
+
console.log('trigger>>', 'inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
34382
34383
|
$(entry.target).trigger('inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
34383
34384
|
|
|
34384
34385
|
// Optional: stop observing once triggered
|
|
@@ -34396,6 +34397,7 @@ 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') {
|
|
34400
|
+
console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
|
|
34399
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);
|