mirror of
https://github.com/Noratrieb/slides.git
synced 2026-01-16 01:15:06 +01:00
enable up/down arrows to step through fragments (closes #233)
This commit is contained in:
parent
fa3d0c899c
commit
eac5a3a239
2 changed files with 8 additions and 8 deletions
10
js/reveal.js
10
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 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue