Skip to content

Commit

Permalink
add comment for background fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bouzidanas committed Feb 5, 2024
1 parent ec4eeab commit 50580c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/controllers/scrollview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 50580c3

Please sign in to comment.