remove current-fragment when leaving slide, add tests for current fragment
This commit is contained in:
parent
ead723bc1c
commit
ef82645589
3 changed files with 38 additions and 5 deletions
|
@ -1712,7 +1712,9 @@ var Reveal = (function(){
|
|||
|
||||
// Show all fragments on prior slides
|
||||
while( pastFragments.length ) {
|
||||
pastFragments.pop().classList.add( 'visible' );
|
||||
var pastFragment = pastFragments.pop();
|
||||
pastFragment.classList.add( 'visible' );
|
||||
pastFragment.classList.remove( 'current-fragment' );
|
||||
}
|
||||
}
|
||||
else if( i > index ) {
|
||||
|
@ -1723,7 +1725,9 @@ var Reveal = (function(){
|
|||
|
||||
// No fragments in future slides should be visible ahead of time
|
||||
while( futureFragments.length ) {
|
||||
futureFragments.pop().classList.remove( 'visible' );
|
||||
var futureFragment = futureFragments.pop();
|
||||
futureFragment.classList.remove( 'visible' );
|
||||
futureFragment.classList.remove( 'current-fragment' );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
6
js/reveal.min.js
vendored
6
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue