Преглед на файлове

add comment for background fix

Anas Bouzid преди 1 година
родител
ревизия
50580c37c2
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  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';
 				page.className = 'scroll-page';
 				pageElements.push( 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 ) {
 				if( slideBackgrounds && slideBackgrounds.length > h ) {
 					const slideBackground = slideBackgrounds[h];
 					const slideBackground = slideBackgrounds[h];
 					const pageBackground = window.getComputedStyle( slideBackground );
 					const pageBackground = window.getComputedStyle( slideBackground );