From 50580c37c2951333b496c7507b623b2cb2fc645f Mon Sep 17 00:00:00 2001 From: Anas Bouzid Date: Sun, 4 Feb 2024 22:16:42 -0600 Subject: [PATCH] add comment for background fix --- js/controllers/scrollview.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/controllers/scrollview.js b/js/controllers/scrollview.js index 063f72c8..40d6bfff 100644 --- a/js/controllers/scrollview.js +++ b/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 );