@vectoriox/iox-builder 1.4.46 → 1.4.47
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.
|
@@ -1152,8 +1152,8 @@ class InteractionEngineService {
|
|
|
1152
1152
|
return;
|
|
1153
1153
|
const inBuilder = this.isBuilderMode();
|
|
1154
1154
|
// Apply any pre-states queued for THIS element by earlier-registered nodes.
|
|
1155
|
-
//
|
|
1156
|
-
if (
|
|
1155
|
+
// Pending entries are only added when appropriate (see loop below), so always consume.
|
|
1156
|
+
if (node.id) {
|
|
1157
1157
|
const pending = this.pendingPreStates.get(node.id);
|
|
1158
1158
|
if (pending) {
|
|
1159
1159
|
for (const action of pending) {
|
|
@@ -1166,9 +1166,13 @@ class InteractionEngineService {
|
|
|
1166
1166
|
return;
|
|
1167
1167
|
const cleanups = [];
|
|
1168
1168
|
for (const ix of node.interactions) {
|
|
1169
|
-
// Pre-state: hide elements before their entrance animation fires.
|
|
1170
|
-
//
|
|
1171
|
-
|
|
1169
|
+
// Pre-state: hide target elements before their entrance animation fires.
|
|
1170
|
+
// In builder mode, skip auto-fire triggers (pageLoad, viewportEnter, scrollProgress)
|
|
1171
|
+
// because those triggers are also suppressed in builder mode — targets would stay
|
|
1172
|
+
// permanently hidden. Manual triggers (click, hover) are kept active on the canvas,
|
|
1173
|
+
// so their targets should start in the correct pre-state.
|
|
1174
|
+
const skipPreState = inBuilder && ix.trigger !== 'click' && ix.trigger !== 'hover';
|
|
1175
|
+
if (!skipPreState) {
|
|
1172
1176
|
for (const action of ix.actions) {
|
|
1173
1177
|
if (this.ENTRANCE_TYPES.has(action.type)) {
|
|
1174
1178
|
const target = this.resolveTarget(node, action);
|