diff options
author | Hakim El Hattab | 2013-04-18 08:53:11 -0400 |
---|---|---|
committer | Hakim El Hattab | 2013-04-18 08:53:11 -0400 |
commit | cc455e2553930d6ede8a0b8d9dda6a9dd8062dc8 (patch) | |
tree | c92f779d64a130890abbcb47643bd6b10c859889 /js/reveal.js | |
parent | 70b7ce360ca24393f44f14d102c9c119841f2d2a (diff) |
correction to navigate top/right/bottom/left methods (closes #409)
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/reveal.js b/js/reveal.js index 0a06579..cd53e03 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1582,7 +1582,7 @@ var Reveal = (function(){ function navigateLeft() { // Prioritize hiding fragments - if( availableRoutes().left && ( isOverview() || previousFragment() === false ) ) { + if( ( isOverview() || previousFragment() === false ) && availableRoutes().left ) { slide( indexh - 1 ); } @@ -1591,7 +1591,7 @@ var Reveal = (function(){ function navigateRight() { // Prioritize revealing fragments - if( availableRoutes().right && ( isOverview() || nextFragment() === false ) ) { + if( ( isOverview() || nextFragment() === false ) && availableRoutes().right ) { slide( indexh + 1 ); } @@ -1600,7 +1600,7 @@ var Reveal = (function(){ function navigateUp() { // Prioritize hiding fragments - if( availableRoutes().up && isOverview() || previousFragment() === false ) { + if( ( isOverview() || previousFragment() === false ) && availableRoutes().up ) { slide( indexh, indexv - 1 ); } @@ -1609,7 +1609,7 @@ var Reveal = (function(){ function navigateDown() { // Prioritize revealing fragments - if( availableRoutes().down && isOverview() || nextFragment() === false ) { + if( ( isOverview() || nextFragment() === false ) && availableRoutes().down ) { slide( indexh, indexv + 1 ); } |