diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-03-14 12:03:42 +0100 |
---|---|---|
committer | Hakim El Hattab <hakim.elhattab@gmail.com> | 2018-03-14 12:03:42 +0100 |
commit | 511397c1775c012b690749ef749d33448e9773e6 (patch) | |
tree | 40702d6da9d49ad655f517adb822ac493fd1d646 /js | |
parent | 0282413b69223d4487a05b9123b8da3295beebd1 (diff) | |
download | perl-software-in-gnu-guix-511397c1775c012b690749ef749d33448e9773e6.tar perl-software-in-gnu-guix-511397c1775c012b690749ef749d33448e9773e6.tar.gz |
prevent missing 'present' class when navigating to same slide twice
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index b8026c1..626ce7a 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2480,7 +2480,7 @@ // Solves an edge case where the previous slide maintains the // 'present' class when navigating between adjacent vertical // stacks - if( previousSlide ) { + if( previousSlide && previousSlide !== currentSlide ) { previousSlide.classList.remove( 'present' ); previousSlide.setAttribute( 'aria-hidden', 'true' ); |