diff options
author | Hakim El Hattab | 2012-11-10 14:04:11 -0500 |
---|---|---|
committer | Hakim El Hattab | 2012-11-10 14:04:11 -0500 |
commit | eac5a3a2399aa57b976d41050bf9690535c2be85 (patch) | |
tree | cb938b38957242cfb0a8831af4a822070f7894b8 /js/reveal.js | |
parent | fa3d0c899cafc5cea5a2095e4df47d262ed6f6fa (diff) |
enable up/down arrows to step through fragments (closes #233)
Diffstat (limited to 'js/reveal.js')
-rw-r--r-- | js/reveal.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/reveal.js b/js/reveal.js index 97ee048..6f527d4 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1,5 +1,5 @@ /*! - * reveal.js 2.2 r40 + * reveal.js 2.2 r41 * http://lab.hakim.se/reveal-js * MIT licensed * @@ -1134,28 +1134,28 @@ var Reveal = (function(){ function navigateLeft() { // Prioritize hiding fragments - if( availableRoutes().left && ( isOverviewActive() || previousFragment() === false ) ) { + if( availableRoutes().left && isOverviewActive() || previousFragment() === false ) { slide( indexh - 1, 0 ); } } function navigateRight() { // Prioritize revealing fragments - if( availableRoutes().right && ( isOverviewActive() || nextFragment() === false ) ) { + if( availableRoutes().right && isOverviewActive() || nextFragment() === false ) { slide( indexh + 1, 0 ); } } function navigateUp() { // Prioritize hiding fragments - if( availableRoutes().up && ( isOverviewActive() || previousFragment() === false ) ) { + if( availableRoutes().up && isOverviewActive() || previousFragment() === false ) { slide( indexh, indexv - 1 ); } } function navigateDown() { // Prioritize revealing fragments - if( availableRoutes().down && ( isOverviewActive() || nextFragment() === false ) ) { + if( availableRoutes().down && isOverviewActive() || nextFragment() === false ) { slide( indexh, indexv + 1 ); } } |