浏览代码

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';
 				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 );