1
0
mirror of https://github.com/hakimel/reveal.js.git synced 2025-08-08 07:36:39 +02:00

add comment for background fix

This commit is contained in:
Anas Bouzid
2024-02-04 22:16:42 -06:00
parent ec4eeab478
commit 50580c37c2

View File

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