aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorhakimel <hakim.elhattab@gmail.com>2013-01-18 15:31:41 -0500
committerhakimel <hakim.elhattab@gmail.com>2013-01-18 15:31:41 -0500
commit61457ce5436a79704dcaf1b280a5a4d28c66c8a1 (patch)
tree10a44f55823dd3d8d8b57d7e56bfd38a426336d6 /js/reveal.js
parent6a7d0cbcc930c4180e99fc3f1f8f2513ea9433d7 (diff)
downloadfosdem-2018-presentation-61457ce5436a79704dcaf1b280a5a4d28c66c8a1.tar
fosdem-2018-presentation-61457ce5436a79704dcaf1b280a5a4d28c66c8a1.tar.gz
fix typos
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 8d829f9..a77a880 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -103,10 +103,10 @@ var Reveal = (function(){
// Delays updates to the URL due to a Chrome thumbnailer bug
writeURLTimeout = 0,
- // A delay used to ativate the overview mode
+ // A delay used to activate the overview mode
activateOverviewTimeout = 0,
- // A delay used to deativate the overview mode
+ // A delay used to deactivate the overview mode
deactivateOverviewTimeout = 0,
// Holds information about the currently ongoing touch input
@@ -587,6 +587,7 @@ var Reveal = (function(){
dom.wrapper.classList.add( 'overview' );
dom.wrapper.classList.remove( 'exit-overview' );
+
clearTimeout( activateOverviewTimeout );
clearTimeout( deactivateOverviewTimeout );
@@ -662,10 +663,12 @@ var Reveal = (function(){
clearTimeout( deactivateOverviewTimeout );
dom.wrapper.classList.remove( 'overview' );
+
// Temporarily add a class so that transitions can do different things
// depending on whether they are exiting/entering overview, or just
// moving from slide to slide
dom.wrapper.classList.add( 'exit-overview' );
+
deactivateOverviewTimeout = setTimeout( function () {
dom.wrapper.classList.remove( 'exit-overview' );
}, 10);