1
0
Эх сурвалжийг харах

dont show lightboxes over upcoming slide in speaker view

Hakim El Hattab 1 сар өмнө
parent
commit
7e96e9ce0a

Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
plugin/notes/notes.esm.js


Файлын зөрүү хэтэрхий том тул дарагдсан байна
+ 0 - 0
plugin/notes/notes.js


+ 4 - 1
plugin/notes/speaker-view.html

@@ -504,9 +504,12 @@
 						notes.classList.add( 'hidden' );
 					}
 
+					// Don't show lightboxes in the upcoming slide
+					const { previewVideo, previewImage, previewIframe, ...upcomingState } = data.state;
+
 					// Update the note slides
 					currentSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
-					upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ data.state ] }), '*' );
+					upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'setState', args: [ upcomingState ] }), '*' );
 					upcomingSlide.contentWindow.postMessage( JSON.stringify({ method: 'next' }), '*' );
 
 				}

Энэ ялгаанд хэт олон файл өөрчлөгдсөн тул зарим файлыг харуулаагүй болно