@vectoriox/iox-builder 1.4.46 → 1.4.48
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.
|
@@ -677,6 +677,10 @@ class DragEngineService {
|
|
|
677
677
|
// whose DOM element lives inside the dragged source wrapper.
|
|
678
678
|
if (this._sourceEl?.contains(el))
|
|
679
679
|
continue;
|
|
680
|
+
// Skip elements hidden by interaction pre-state (pointer-events: none marks
|
|
681
|
+
// entrance-type targets that are currently opacity:0 in the canvas).
|
|
682
|
+
if (el.style.pointerEvents === 'none')
|
|
683
|
+
continue;
|
|
680
684
|
const rect = this._dropzoneRectCache.get(id) ?? el.getBoundingClientRect();
|
|
681
685
|
if (px >= rect.left && px <= rect.right && py >= rect.top && py <= rect.bottom) {
|
|
682
686
|
const area = rect.width * rect.height;
|
|
@@ -1152,8 +1156,8 @@ class InteractionEngineService {
|
|
|
1152
1156
|
return;
|
|
1153
1157
|
const inBuilder = this.isBuilderMode();
|
|
1154
1158
|
// Apply any pre-states queued for THIS element by earlier-registered nodes.
|
|
1155
|
-
//
|
|
1156
|
-
if (
|
|
1159
|
+
// Pending entries are only added when appropriate (see loop below), so always consume.
|
|
1160
|
+
if (node.id) {
|
|
1157
1161
|
const pending = this.pendingPreStates.get(node.id);
|
|
1158
1162
|
if (pending) {
|
|
1159
1163
|
for (const action of pending) {
|
|
@@ -1166,9 +1170,13 @@ class InteractionEngineService {
|
|
|
1166
1170
|
return;
|
|
1167
1171
|
const cleanups = [];
|
|
1168
1172
|
for (const ix of node.interactions) {
|
|
1169
|
-
// Pre-state: hide elements before their entrance animation fires.
|
|
1170
|
-
//
|
|
1171
|
-
|
|
1173
|
+
// Pre-state: hide target elements before their entrance animation fires.
|
|
1174
|
+
// In builder mode, skip auto-fire triggers (pageLoad, viewportEnter, scrollProgress)
|
|
1175
|
+
// because those triggers are also suppressed in builder mode — targets would stay
|
|
1176
|
+
// permanently hidden. Manual triggers (click, hover) are kept active on the canvas,
|
|
1177
|
+
// so their targets should start in the correct pre-state.
|
|
1178
|
+
const skipPreState = inBuilder && ix.trigger !== 'click' && ix.trigger !== 'hover';
|
|
1179
|
+
if (!skipPreState) {
|
|
1172
1180
|
for (const action of ix.actions) {
|
|
1173
1181
|
if (this.ENTRANCE_TYPES.has(action.type)) {
|
|
1174
1182
|
const target = this.resolveTarget(node, action);
|