Skip to content

Commit ae7cd10

Browse files
committed
MC-3309: Build stabilization for MC-1416
- Fixed all of the resizing tests
1 parent a0dd8a0 commit ae7cd10

File tree

2 files changed

+12
-4
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+12
-4
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/column-group/preview.js

Lines changed: 7 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/code/Magento/PageBuilder/view/adminhtml/web/ts/js/content-type/column-group/preview.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export default class Preview extends PreviewCollection {
7878
private groupPositionCache: GroupPositionCache;
7979
private resizeUtils: Resize;
8080
private gridSizeHistory: Map<number, number[]> = new Map();
81+
private interactionLevel: number = 0;
8182

8283
/**
8384
*
@@ -313,6 +314,7 @@ export default class Preview extends PreviewCollection {
313314
this.resizeLastPosition = null;
314315
this.resizeMouseDown = true;
315316

317+
++this.interactionLevel;
316318
events.trigger("stage:interactionStart", {stageId: this.parent.stageId});
317319
});
318320
}
@@ -509,7 +511,9 @@ export default class Preview extends PreviewCollection {
509511
*/
510512
private endAllInteractions(): void {
511513
if (this.resizing() === true) {
512-
events.trigger("stage:interactionStop", {stageId: this.parent.stageId});
514+
for (;this.interactionLevel > 0;this.interactionLevel--) {
515+
events.trigger("stage:interactionStop", {stageId: this.parent.stageId});
516+
}
513517
}
514518

515519
this.resizing(false);

0 commit comments

Comments
 (0)