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

fix issue where background of a future vertical slide is briefly visible ahead of time #3520

This commit is contained in:
Hakim El Hattab
2023-11-09 09:02:29 +01:00
parent 11680561e9
commit 1e1e228680
5 changed files with 10 additions and 8 deletions

4
dist/reveal.esm.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

4
dist/reveal.js vendored

File diff suppressed because one or more lines are too long

2
dist/reveal.js.map vendored

File diff suppressed because one or more lines are too long

View File

@@ -301,10 +301,12 @@ export default class Backgrounds {
backgroundv.classList.remove( 'past', 'present', 'future' ); backgroundv.classList.remove( 'past', 'present', 'future' );
if( v < indices.v ) { const indexv = typeof indices.v === 'number' ? indices.v : 0;
if( v < indexv ) {
backgroundv.classList.add( 'past' ); backgroundv.classList.add( 'past' );
} }
else if ( v > indices.v ) { else if ( v > indexv ) {
backgroundv.classList.add( 'future' ); backgroundv.classList.add( 'future' );
} }
else { else {