aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorfabiano <fabianorosas@gmail.com>2014-05-09 15:58:56 -0300
committerfabiano <fabianorosas@gmail.com>2014-05-09 15:58:56 -0300
commitcb4fe35bac514fcacf98b76f094071b9d50a722b (patch)
tree545ab0f0e739893e0445d7929904904aa473eedf /js
parentd072be2f573fe532f95907dc02c85b224b64819d (diff)
downloadfosdem-2018-presentation-cb4fe35bac514fcacf98b76f094071b9d50a722b.tar
fosdem-2018-presentation-cb4fe35bac514fcacf98b76f094071b9d50a722b.tar.gz
fixed a problem in the function isFirstSlide
when visiting a vertical slide and then going back to the first slide, the function would return false. made it more fail proof by checking the indices directly.
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 da43738..3bd75a2 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3902,7 +3902,7 @@
// Returns true if we're currently on the first slide
isFirstSlide: function() {
- return document.querySelector( SLIDES_SELECTOR + '.past' ) == null ? true : false;
+ return ( indexh == 0 && indexv == 0 );
},
// Returns true if we're currently on the last slide