Explorar o código

add comment for background fix

Anas Bouzid hai 1 ano
pai
achega
50580c37c2
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      js/controllers/scrollview.js

+ 3 - 1
js/controllers/scrollview.js

@@ -77,7 +77,9 @@ export default class ScrollView {
 				page.className = 'scroll-page';
 				pageElements.push( page );
 
-				// If 
+				// This transfers over the background of the vertical stack containing
+				//  the slide if it exists. Otherwise, it uses the presentation-wide
+				//  background.
 				if( slideBackgrounds && slideBackgrounds.length > h ) {
 					const slideBackground = slideBackgrounds[h];
 					const pageBackground = window.getComputedStyle( slideBackground );