diff options
author | Hakim El Hattab | 2013-12-21 18:12:02 +0100 |
---|---|---|
committer | Hakim El Hattab | 2013-12-21 18:12:02 +0100 |
commit | 6215b12f6ee559c91c2b82be9f98d91f42af9ee7 (patch) | |
tree | d596bbff6c31f379af0e71ba4da9706f0b7d69dd | |
parent | 942154182562b6c80bb9b536d24b1d8bd947452c (diff) |
naming/comment tweak
-rw-r--r-- | js/reveal.js | 7 | ||||
-rw-r--r-- | js/reveal.min.js | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js index be7b8a8..9d389c5 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2698,8 +2698,9 @@ var Reveal = (function(){ */ function onDocumentKeyDown( event ) { - // store auto slide value to be able to toggle auto sliding - var currentAutoSlideValue = autoSlidePaused; + // Remember if auto-sliding was paused so we can toggle it + var autoSlideWasPaused = autoSlidePaused; + onUserInput( event ); // Check if there's a focused element that could be using @@ -2777,7 +2778,7 @@ var Reveal = (function(){ // f case 70: enterFullscreen(); break; // a - case 65: if ( config.autoSlideStoppable ) toggleAutoSlide( currentAutoSlideValue ); break; + case 65: if ( config.autoSlideStoppable ) toggleAutoSlide( autoSlideWasPaused ); break; default: triggered = false; } diff --git a/js/reveal.min.js b/js/reveal.min.js index ccebcb1..fb050d1 100644 --- a/js/reveal.min.js +++ b/js/reveal.min.js @@ -1,5 +1,5 @@ /*! - * reveal.js 2.6.1 (2013-12-21, 17:53) + * reveal.js 2.6.1 (2013-12-21, 18:11) * http://lab.hakim.se/reveal-js * MIT licensed * |