diff options
author | fabiano <fabianorosas@gmail.com> | 2014-05-09 15:58:56 -0300 |
---|---|---|
committer | fabiano <fabianorosas@gmail.com> | 2014-05-09 15:58:56 -0300 |
commit | cb4fe35bac514fcacf98b76f094071b9d50a722b (patch) | |
tree | 545ab0f0e739893e0445d7929904904aa473eedf /js | |
parent | d072be2f573fe532f95907dc02c85b224b64819d (diff) | |
download | fosdem-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.js | 2 |
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 |