fixes bug where the .present class remained on previous slide (closes #88)
This commit is contained in:
parent
e570265a67
commit
e9b874112e
2 changed files with 9 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
/*!
|
||||
* reveal.js 1.5 r2
|
||||
* reveal.js 1.5 r3
|
||||
* http://lab.hakim.se/reveal-js
|
||||
* MIT licensed
|
||||
*
|
||||
|
@ -731,6 +731,13 @@ var Reveal = (function(){
|
|||
// Ensure that the previous slide is never the same as the current
|
||||
previousSlide = null;
|
||||
}
|
||||
|
||||
// Solves an edge case where the previous slide maintains the
|
||||
// 'present' class when navigating between adjacent vertical
|
||||
// stacks
|
||||
if( previousSlide ) {
|
||||
previousSlide.classList.remove( 'present' );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue