@innovastudio/contentbox 1.5.35 → 1.5.36
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -107426,6 +107426,7 @@ class ContentBox {
|
|
107426
107426
|
}); // Live Preview
|
107427
107427
|
|
107428
107428
|
const modalPagePreview = this.builderStuff.querySelector('.is-modal.content-preview');
|
107429
|
+
this.modalPagePreview = modalPagePreview;
|
107429
107430
|
const iframe = modalPagePreview.querySelector('iframe');
|
107430
107431
|
this.win.addEventListener('scroll', this.doScrollSync = () => {
|
107431
107432
|
this.scrollSync(iframe);
|
@@ -107436,8 +107437,7 @@ class ContentBox {
|
|
107436
107437
|
|
107437
107438
|
|
107438
107439
|
scrollSync(iframe) {
|
107439
|
-
|
107440
|
-
if (!modalPagePreview.classList.contains('active')) return;
|
107440
|
+
if (!this.modalPagePreview.classList.contains('active')) return;
|
107441
107441
|
if (this.cancelScrollSync) return;
|
107442
107442
|
|
107443
107443
|
try {
|