@xuda.io/runtime-bundle 1.0.800 → 1.0.802
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.
package/js/xuda-runtime-slim.js
CHANGED
|
@@ -14712,6 +14712,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14712
14712
|
entries.forEach((entry) => {
|
|
14713
14713
|
if (entry.isIntersecting) {
|
|
14714
14714
|
// Element is in viewport - trigger custom event
|
|
14715
|
+
console.log('trigger>>', 'inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
14716
|
+
hover_in($div);
|
|
14715
14717
|
$(entry.target).trigger('inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
14716
14718
|
|
|
14717
14719
|
// Optional: stop observing once triggered
|
|
@@ -14729,6 +14731,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
14729
14731
|
};
|
|
14730
14732
|
|
|
14731
14733
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
14734
|
+
console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
|
|
14732
14735
|
$div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
|
|
14733
14736
|
render_child();
|
|
14734
14737
|
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|
|
@@ -12420,6 +12420,8 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12420
12420
|
entries.forEach((entry) => {
|
|
12421
12421
|
if (entry.isIntersecting) {
|
|
12422
12422
|
// Element is in viewport - trigger custom event
|
|
12423
|
+
console.log('trigger>>', 'inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
12424
|
+
hover_in($div);
|
|
12423
12425
|
$(entry.target).trigger('inViewport_' + $(entry.target).attr('xu-ui-id'));
|
|
12424
12426
|
|
|
12425
12427
|
// Optional: stop observing once triggered
|
|
@@ -12437,6 +12439,7 @@ func.UI.screen.render_ui_tree = async function (SESSION_ID, $container, nodeP, p
|
|
|
12437
12439
|
};
|
|
12438
12440
|
|
|
12439
12441
|
if (nodeP?.attributes?.['xu-viewport'] == 'true') {
|
|
12442
|
+
console.log('on>>', 'inViewport_' + $div.attr('xu-ui-id'));
|
|
12440
12443
|
$div.on('inViewport_' + $div.attr('xu-ui-id'), function () {
|
|
12441
12444
|
render_child();
|
|
12442
12445
|
// iterate_child($div, nodeP, parent_infoP, null, $root_container);
|