Browse Source

dont show lightboxes over upcoming slide in speaker view

Hakim El Hattab 1 tháng trước cách đây
mục cha
commit
7e96e9ce0a
3 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 0 0
      plugin/notes/notes.esm.js
  2. 0 0
      plugin/notes/notes.js
  3. 4 1
      plugin/notes/speaker-view.html

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 0 - 0
plugin/notes/notes.esm.js


Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 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' }), '*' );
 
 				}

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác