fix minor inconsistency in left/right nav when first/last slides are vertical

This commit is contained in:
Hakim El Hattab 2013-03-04 16:17:01 -05:00
parent 3a8e6dd4ba
commit 2abf6678fa
2 changed files with 4 additions and 4 deletions

View File

@ -1543,7 +1543,7 @@ var Reveal = (function(){
function navigateLeft() { function navigateLeft() {
// Prioritize hiding fragments // Prioritize hiding fragments
if( availableRoutes().left && isOverview() || previousFragment() === false ) { if( availableRoutes().left && ( isOverview() || previousFragment() === false ) ) {
slide( indexh - 1 ); slide( indexh - 1 );
} }
@ -1552,7 +1552,7 @@ var Reveal = (function(){
function navigateRight() { function navigateRight() {
// Prioritize revealing fragments // Prioritize revealing fragments
if( availableRoutes().right && isOverview() || nextFragment() === false ) { if( availableRoutes().right && ( isOverview() || nextFragment() === false ) ) {
slide( indexh + 1 ); slide( indexh + 1 );
} }

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long