From 511397c1775c012b690749ef749d33448e9773e6 Mon Sep 17 00:00:00 2001
From: Hakim El Hattab <hakim.elhattab@gmail.com>
Date: Wed, 14 Mar 2018 12:03:42 +0100
Subject: [PATCH] prevent missing 'present' class when navigating to same slide
 twice

---
 js/reveal.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/reveal.js b/js/reveal.js
index b8026c1d..626ce7a9 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' );
 
-- 
GitLab