aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2018-03-14 12:03:42 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2018-03-14 12:03:42 +0100
commit511397c1775c012b690749ef749d33448e9773e6 (patch)
tree40702d6da9d49ad655f517adb822ac493fd1d646 /js
parent0282413b69223d4487a05b9123b8da3295beebd1 (diff)
downloadperl-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.js2
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' );