@vectoriox/iox-builder 1.4.70 → 1.4.71
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.
|
@@ -1258,11 +1258,12 @@ class InteractionEngineService {
|
|
|
1258
1258
|
const cleanups = [];
|
|
1259
1259
|
for (const ix of node.interactions) {
|
|
1260
1260
|
// Pre-state: hide target elements before their entrance animation fires.
|
|
1261
|
-
// In builder mode
|
|
1262
|
-
//
|
|
1263
|
-
//
|
|
1264
|
-
//
|
|
1265
|
-
|
|
1261
|
+
// In builder mode: skip pre-state for all auto-fire triggers (pageLoad,
|
|
1262
|
+
// viewportEnter, scrollProgress) — they would stay permanently hidden if
|
|
1263
|
+
// the trigger is suppressed or the canvas scroll container doesn't expose
|
|
1264
|
+
// a standard browser viewport for IntersectionObserver.
|
|
1265
|
+
// Click/hover triggers are always active so their pre-state is applied.
|
|
1266
|
+
const skipPreState = inBuilder && ix.trigger !== 'click' && ix.trigger !== 'hover';
|
|
1266
1267
|
if (!skipPreState) {
|
|
1267
1268
|
for (const action of ix.actions) {
|
|
1268
1269
|
if (this.ENTRANCE_TYPES.has(action.type)) {
|